Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#39684 - [vte3] [bash] [zsh] need an equivalent to profile.d for non-login shells

Attached to Project: Arch Linux
Opened by Daniel Micay (thestinger) - Sunday, 30 March 2014, 01:58 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 07 May 2021, 09:23 GMT
Task Type Feature Request
Category Packages: Extra
Status Assigned
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No


On Fedora, non-login shells also source the files in /etc/profile.d so vte3 is dumping the file. This is not something upstream can fix if we aren't providing them an alternative location, or moving it there ourselves. The global bash and zsh configuration files for non-interactive shells should be taught to read files from a directory, and should be moved there.

At the moment, opening a new tab/terminal is broken without user intervention despite upstream intending for it to work out of the box.
This task depends upon

Comment by Daniel Micay (thestinger) - Sunday, 30 March 2014, 02:00 GMT
The main upstream issue is but I linked to that one since the discussion was relevant. Also, to clarify, it's opening a new tab/terminal *in the current working directory* that's broken.
Comment by Pierre Schmitz (Pierre) - Saturday, 16 May 2015, 12:00 GMT
Can we close this as "wontfix"? Sourcing /etc/profile.d is not going to happen for non-login shells. I assume a generic /etc/env that sources scripts in /etc/env.d could be done. In case of zsh this can be calls by /etc/zshenv. (I have no real interest in working on this though; should be done usptream)
Comment by Javier Domingo Cansino (txomon) - Thursday, 28 May 2015, 22:11 GMT
I would like to add some information here. There is a compatibility problem IMO, because the only file that zsh executes in every case, is the zshenv.

The problem with this is that later, the next file to get executed is /etc/zsh/zprofile, which has been set to source /etc/profile, which resets PATHs. With this behaviour, it is imposible to set a path for all the shells that might get executed because the ones that are login shells will not have the proper path configuration.

I would propose at least removing the source of /etc/profile, or copying it to the first stage of the configuration at /etc/zshenv, as the user file gets executed after it's /etc double, and not all the /etc and then the user files.
Comment by Gus Fun (fungalnet) - Thursday, 13 September 2018, 09:52 GMT
I don't know if this is relevant or not, but since terminal tabs are mentioned this may be of interest

Since vte3-0.54 appeared in testing lxterminal shuts down when a tab is closed by hitting the x on the tab. The problem is cured by reinstalling 0.52 from extra.
Comment by Andreas Radke (AndyRTR) - Friday, 07 May 2021, 09:23 GMT
Is this still an issue with vte-common 0.64.1-1 ?