gnome-terminal >= 3.7 requires sourcing of vte.sh login script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNOME Terminal |
Won't Fix
|
Medium
|
|||
gnome-terminal (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
As of gnome-terminal 3.7.0, it is required to add the following to PS1 to get the usual behaviour where a new terminal opens with the current working directory of the terminal you activated it from.
export PS1='\[
gnome-terminal devs suggest to put this in .bashrc, however since this basically causes a regression, it would make sense to deal with it at a distro level and perhaps include it in the system bash scripts or similar.
The actual change was made in libvte so this may potentially affect any application that uses that library.
As a side note: __vte_ps1() is provided by /etc/profile.
summary: |
- PS1 arguments required for gnome-terminal > 3.7.0 + gnome-terminal requires sourcing of vte.sh login script |
Changed in gnome-terminal: | |
importance: | Unknown → Medium |
status: | Unknown → New |
summary: |
- gnome-terminal requires sourcing of vte.sh login script -- go back to - reading /proc/pid/cwd + gnome-terminal >= 3.7 requires sourcing of vte.sh login script -- go + back to reading /proc/pid/cwd |
Changed in gnome-terminal (Ubuntu): | |
assignee: | nobody → Martin Pitt (pitti) |
Changed in gnome-terminal: | |
status: | New → Won't Fix |
Changed in gnome-terminal (Ubuntu): | |
importance: | Undecided → Medium |
For > 3.8 it is just required to source the vte.sh script. It is no longer required to mess around with exporting an updated PS1.
As a workaround, add the following line to the end of ~/.bashrc: d/vte.sh
. /etc/profile.