current directory changed to / when opening a new tab/window

Bug #390013 reported by Nicolò Chieffo
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-terminal (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-terminal

gnome-terminal 2.26.2-1ubuntu1
sudo 1.7.0-1ubuntu1

I'm not sure it's gnome-terminal or sudo fault, but whenever I start in gnome terminal a sudo operation, and (while sudo is still alive) I choose to open another tab, I get chdirred to /

Normally I get chdirred to the directory of the current tab (before clicking on new tab)

Tags: likely-dup
tags: added: likely-dup
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for the report, do you have a test case for that?

Changed in gnome-terminal (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 390013] Re: current directory changed to / when opening a new tab/window

- open gnome-terminal (note you are in your home directory)
- execute sudo echo
- don't insert the password
- file->open tab (sudo is still waiting for your password, so it's
still running)
- you are now in /

Revision history for this message
Dominik George (natureshadow) wrote :

I'm sure this is related to #362880 and #263637.

GNOME Terminal chdirs to the working directory of the current shell job instead of the working directory of the shell itself.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Yes, seems to be related to bug 362880 there's a couple of duplicates on the upstream report with this same behavior, marking it as duplicate, thanks all.

Changed in gnome-terminal (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.