Bug 1917145

Summary: Terminal instances started from a file manager context menu are broken
Product: [Fedora] Fedora Reporter: Douglas <doug.hs>
Component: gnome-terminalAssignee: Debarshi Ray <debarshir>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: caillon+fedoraproject, debarshir, doug.hs, gnome-sig, mclasen, rhughes, rstrode, sandmann
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 18:29:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot of GNOME Terminal with one affected tab
none
Trying to run the "pass" command from a normal and a buggy window none

Description Douglas 2021-01-17 14:50:11 UTC
Created attachment 1748278 [details]
Screenshot of GNOME Terminal with one affected tab

Description of problem:
Whenever I open a directory on GNOME Files and use its right-click context menu to open a terminal at that location, then open a new tab by clicking the plus (+) icon to the left, the resulting tab and any other new tabs on that window start malfunctioning.

The tab initially created when the window spawns on the screen is working as expected. Only new tabs on that window are affected.

The first thing you would notice (see screenshot) is that the username in the shell prompt string is missing. That's the visual indication that you're affected by this.

The biggest issue is that some commands misbehave on these tabs. For example, the CLI password manager "pass" cannot locate my password store, even though it works on terminal windows opened from the launcher. It's as if terminal windows opened from a file manager context menu were forgetting who am I.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Close all running instances of GNOME Terminal
2. Open GNOME Files (the only file manager I've tested)
3. Right-click inside any directory
4. Select "Open in Terminal"
5. On the terminal window that spawns, open new tabs

Actual results:
The newly opened tabs in the affected window appear to be unaware of the user in their prompt strings, and they misbehave as described above.

Expected results:
New tabs on windows opened from a context menu should behave the same as tabs and windows opened by clicking the launcher button.

Comment 1 Douglas 2021-01-17 14:51:23 UTC
Created attachment 1748279 [details]
Trying to run the "pass" command from a normal and a buggy window

Comment 2 Douglas 2021-04-11 23:24:06 UTC
I'm now running a fresh install of Fedora Workstation 34 Beta, and I can still reproduce this.

Comment 3 Debarshi Ray 2021-05-18 18:29:20 UTC

*** This bug has been marked as a duplicate of bug 1884977 ***