RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1480174 - Terminal doesn't remember the last working directory when opening a new tab
Summary: Terminal doesn't remember the last working directory when opening a new tab
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gnome-terminal
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Debarshi Ray
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-10 10:24 UTC by Mario Torre
Modified: 2017-10-17 17:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-17 17:43:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Video shocasing the issue (870.88 KB, application/octet-stream)
2017-08-10 11:06 UTC, Mario Torre
no flags Details

Description Mario Torre 2017-08-10 10:24:38 UTC
Description of problem:

When opening a new tab in gnome-terminal, the tab is opened pointing in $HOME, no matter what was the directory I was in while creating the new tab. This seems to have changed since the previous RHEL 7.3.

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

3.22.1

How reproducible:

Open gnome-terminal, go in a directory, i.e. ~/Documents, then press the default key combination to create a new tab: CTRL+SHIFT+t, the new tab opens in $HOME, it should instead open in ~/Documents.

Steps to Reproduce:
1. in gnome-terminal, go in a directory, i.e. ~/Documents
2. open a new tab

Actual results:

Tab opens in $HOME

Expected results:

Tab should open in ~/Documents

Additional info:

I'm sure this behaviour changed since at least 7.2, it makes the terminal very hard to use since I need to continually go back to the previous tab to check the  pwd, this is sometime not possible, for example when checking log files or using  some pagination or editing files in the terminal, etc...

Comment 2 Vera Budikova 2017-08-10 10:30:26 UTC
I have tried it for gnome-terminal-3.22.1-2.el7.x86_64 and it works for me...

Comment 3 Mario Torre 2017-08-10 11:05:52 UTC
(In reply to Vera Budikova from comment #2)
> I have tried it for gnome-terminal-3.22.1-2.el7.x86_64 and it works for me...

That's very strange. This is a fresh install, I also created a new user to rule out some configurations, I'm attaching the video to showcase the issue.

Comment 4 Mario Torre 2017-08-10 11:06:26 UTC
Created attachment 1311696 [details]
Video shocasing the issue

Comment 6 Debarshi Ray 2017-10-05 18:29:01 UTC
$ echo $PROMPT_COMMAND ?

Comment 7 Mario Torre 2017-10-16 12:02:44 UTC
(In reply to Debarshi Ray from comment #6)
> $ echo $PROMPT_COMMAND ?

I apologise, I didn't see the needinfo... I reinstalled the OS (from the same image) and things are working correctly now. It may have been a faulty install perhaps?

Comment 8 Debarshi Ray 2017-10-17 17:43:29 UTC
The shell integration to open new tabs and windows in the last working directory comes from the vte-profile package. Maybe that went missing? Or something overwrote your PROMPT_COMMAND environment variable.

Closing as WORKSFORME.


Note You need to log in before you can comment on or make changes to this bug.