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.
