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 be running something that lightdm is not, but I >> don't know what it is. >> > I forgot to mention I am using Debian > 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.
