#755546 gnome-terminal: 3.12.3-1's new tabs/windows don't inherit working path from old one

Package:
gnome-terminal
Source:
gnome-terminal
Description:
GNOME terminal emulator application
Submitter:
Date:
2014-07-23 09:42:54 UTC
Severity:
normal
#755546#5
Date:
2014-07-21 22:44:51 UTC
From:
To:
Dear gnome Maintainers,

After upgrading from 3.4.1.1-2 to 3.12.3-1, new terminal tabs or windows
open at $HOME instead of the working directory of the terminal where
they were opened from.

This is a nice feature and I hope it's not a deliverate change.

Maybe this has something to do with: https://bugs.debian.org/719553

Regards,

  Santiago

#755546#10
Date:
2014-07-22 09:50:19 UTC
From:
To:
Terminal window to get a new window or tab in the same working
directory. This feature is also meant to work with bash.

Is your shell bash, zsh or something else? Does it (perhaps indirectly)
source /etc/profile.d/vte.sh during startup?

    S

#755546#15
Date:
2014-07-23 08:53:31 UTC
From:
To:
El 22/07/14 a las 10:50, Simon McVittie escribió:
https://wiki.gnome.org/action/show/Apps/Terminal/FAQ?action=show&redirect=Terminal%2FFAQ#How_can_I_make_new_terminals_start_in_the_working_directory_of_the_current_terminal.3F
However, the solution is inconsistent:

For bash, I checked the "Run command as a login shell" profile option.
For zsh, I had to manually source vte.sh from my zshrc.
Shouldn't "Run command as a login shell" work for both of them?

Regards,

Santiago

Other packages' version:

bash 4.3-7
zsh 5.0.5-4
libvte-2.90-9 1:0.36.3-1

#755546#20
Date:
2014-07-23 09:42:19 UTC
From:
To:
zshall(1) says that zsh only sources /etc/profile (and hence profile.d)
if it is invoked as sh or ksh, and not if it is invoked as zsh.

Looking at my zshrc, it seems that I applied the same workaround you did
at some point.

I don't see much that either gnome-terminal or vte can do to improve on
this, unfortunately - whether a particular shell executes /etc/whatever
is up to that shell. Perhaps this should be wishlist bugs against bash
and zsh, asking that the default bashrc and zshrc should execute
/etc/profile.d/vte.sh if it exists, or that there should be some generic
mechanism by which the default *rc execute extra files so that vte can
drop in vte.sh?

    S