Re: Modify user PATH in GNOME in Debian 12

2023-11-25 Thread Max Nikulin
On 25/11/2023 10:50, Greg Wooledge wrote: On Sat, Nov 25, 2023 at 10:28:13AM +0700, Max Nikulin wrote: SDDM does read /etc/profile and ~/.profile when starting a user session: https://sources.debian.org/src/sddm/0.20.0-1/data/scripts/Xsession/ Interesting. I wondered whether that might be a

Re: Modify user PATH in GNOME in Debian 12

2023-11-24 Thread Greg Wooledge
On Sat, Nov 25, 2023 at 10:28:13AM +0700, Max Nikulin wrote: > SDDM does read /etc/profile and ~/.profile when starting a user session: > https://sources.debian.org/src/sddm/0.20.0-1/data/scripts/Xsession/ Interesting. I wondered whether that might be a Debian patch, since I couldn't see mention

Re: Modify user PATH in GNOME in Debian 12

2023-11-24 Thread Max Nikulin
On 25/11/2023 00:15, Greg Wooledge wrote: On Fri, Nov 24, 2023 at 11:51:53PM +0700, Max Nikulin wrote: On the other hand I can not say that I understand what happens with PATH. Likely modifications made through environment.d are overwritten by /etc/profile. The latter is called by

Re: Modify user PATH in GNOME in Debian 12

2023-11-24 Thread Greg Wooledge
On Fri, Nov 24, 2023 at 11:51:53PM +0700, Max Nikulin wrote: > I guess you are not running Gnome. I'm using fvwm. > A window manager still might do some magic by calling "systemctl > set-environment". My impression is that nowadays an application spawned by > systemd is not something unusual.

Re: Modify user PATH in GNOME in Debian 12

2023-11-24 Thread Max Nikulin
On 24/11/2023 00:20, Greg Wooledge wrote: For me, all of the environment.d(5) stuff goes into the systemd --user service manager which spawns... nothing that's visible to me. Nothing at all. All of my visible applications (terminals, web browsers, etc.) are spawned by my window manager, which

Re: Modify user PATH in GNOME in Debian 12

2023-11-23 Thread gene heskett
On 11/23/23 09:18, Greg Wooledge wrote: On Thu, Nov 23, 2023 at 05:43:18AM -0500, gene heskett wrote: I'm user 1000 and have had the expected results by putting a modified path in my .profile but it is not automatic, I have to . .profile for every terminal I start. I have 2 non-stock dirs in my

Re: Modify user PATH in GNOME in Debian 12

2023-11-23 Thread Greg Wooledge
On Thu, Nov 23, 2023 at 10:52:25PM +0700, Max Nikulin wrote: > On 23/11/2023 21:02, Greg Wooledge wrote: > > Usually, creating ~/.xsessionrc (on Debian only, as it's specific to > > Debian) will suffice for this, as it gets read in by the X session > > before it spawns your window manager, and

Re: Modify user PATH in GNOME in Debian 12

2023-11-23 Thread Max Nikulin
On 23/11/2023 21:02, Greg Wooledge wrote: Usually, creating ~/.xsessionrc (on Debian only, as it's specific to Debian) will suffice for this, as it gets read in by the X session before it spawns your window manager, and then the WM spawns everything else, all with your desired environment.

Re: Modify user PATH in GNOME in Debian 12

2023-11-23 Thread Max Nikulin
On 23/11/2023 21:16, Greg Wooledge wrote: For this setup, I'd go with the ~/.xsessionrc file. Create the file/home/gene/.xsessionrc and put this in it: PATH=$HOME/bin:$HOME/AppImages:$PATH SDDM (default for KDE and I assume it is Gene's case) reads ~/.profile that contains the

Re: Modify user PATH in GNOME in Debian 12

2023-11-23 Thread Greg Wooledge
On Thu, Nov 23, 2023 at 05:43:18AM -0500, gene heskett wrote: > I'm user 1000 and have had the expected results by putting a modified path > in my .profile but it is not automatic, I have to . .profile for every > terminal I start. I have 2 non-stock dirs in my /home/me path, bin and > AppImages,

Re: Modify user PATH in GNOME in Debian 12

2023-11-23 Thread Greg Wooledge
NOTE: the original Subject: header of this thread includes the keyword "GNOME" which does not appear in the body of the original message, but which is *terribly* important here. See below. On Thu, Nov 23, 2023 at 09:49:13AM +, Bernhard Walle wrote: > I want to add some directory to $PATH for

Re: Modify user PATH in GNOME in Debian 12

2023-11-23 Thread gene heskett
On 11/23/23 05:06, Bernhard Walle wrote: Hello, I want to add some directory to $PATH for each user. In the past, I added a file /etc/profile.d/path.sh, but that doesn't work any more, only when I manually start bash as login shell (or modify the setting of gnome-terminal). My next attempt