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 Toolybird (Toolybird) - Sunday, 11 June 2023, 07:50 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

On Fedora, non-login shells also source the files in /etc/profile.d so vte3 is dumping the vte3.sh 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 vte3.sh 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.

https://bugzilla.gnome.org/show_bug.cgi?id=709358
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 11 June 2023, 07:50 GMT
Reason for closing:  No response
Comment by Daniel Micay (thestinger) - Sunday, 30 March 2014, 02:00 GMT
The main upstream issue is https://bugzilla.gnome.org/show_bug.cgi?id=697475 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 https://bugs.archlinux.org/task/60035

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 ?

Loading...