Setting PATH with lightDM and zsh

Hi, I can't seem to find a good place to set my PATH such that my wm and any programs I launch recognize it. The arch wiki recommends setting it in .zprofile and that would work except that lightDM doesn't source it. .zshrc isn't much better as I'd have to launch stuff from the terminal to get my new PATH. I guess I could use .xprofile or edit the session wrapper, but those options feel hackish. So, is there anybody else facing this, and any way around it?

/etc/profile ??????

Editing /etc/profile to add per-user paths is even hackier, and a security hole. Let's say you add $HOME/bin to the PATH there and somehow an executable such as /root/bin/sh is made somehow. If you added it to the head of the path you are in trouble.

${HOME}/.profile in this case thats a file every shell uses

1 Like

Ah, I did not know that. OK that works then.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by