Re: PATH variable not set by lightdm but is set by su -

2025-03-08 Thread Richmond via
On 08/03/2025 04:00, 宋文武 wrote: > Richmond via writes: > >> [...] >> I have found that using: >> >> su - guix >> >> executes /etc/profile which executes /etc/profile.d/guix.sh >> >> But logging in through a display manager does not execute this, or if it >> does, the PATH does not get set to inclu

Re: PATH variable not set by lightdm but is set by su -

2025-03-07 Thread 宋文武
Richmond via writes: > [...] > I have found that using: > > su - guix > > executes /etc/profile which executes /etc/profile.d/guix.sh > > But logging in through a display manager does not execute this, or if it > does, the PATH does not get set to include .guix-profile/bin etc. Yes, /etc/profile

Re: PATH variable not set by lightdm but is set by su -

2025-03-07 Thread Richmond via
On 07/03/2025 18:13, Richmond via wrote: > On 07/03/2025 18:12, Richmond via wrote: >> I created a user: guix. If I log in through lightdm and run a terminal, >> PATH is not set to include .guix-profile etc. But if I then type: >> >> su - guix >> >> Then the PATH is set. >> >> Why is this? su must

Re: PATH variable not set by lightdm but is set by su -

2025-03-07 Thread Richmond via
On 07/03/2025 18:12, Richmond via wrote: > I created a user: guix. If I log in through lightdm and run a terminal, > PATH is not set to include .guix-profile etc. But if I then type: > > su - guix > > Then the PATH is set. > > Why is this? su must be running something that lightdm is not, but I > d