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

Simon McVittie smcv at debian.org
Wed Jul 23 09:42:19 UTC 2014


On 23/07/14 09:53, santiago at debian.org wrote:
> My default shell is zsh. Now it works with zsh and bash, after reading this:
> 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?

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



More information about the pkg-gnome-maintainers mailing list