You are not logged in.
I am currently using lightdm as my login manager. I am also using zsh as my shell. I have a lot of settings in my zprofile zshenv and zshrc files. I would like to have lightdm load my zprofile zshenv and zshrc so that all my environment variables are configured properly on my desktop.
Is there a way to do this?
Offline
If you switched the login shell to ZSH for your user, this will happen automatically. There is an article on the wiki describing how to change the login shell.
Offline
I have had zsh as my default shell the whole time. It's not working.
When I open a terminal, zsh opens up and loads zshenv and zshrc as it should. It doesn't load zprofile since opening a terminal doesn't start a login shell. Of course this is only for the current zsh session. Nothing is loaded for the actual desktop process (In my case awesome).
In my zprofile I set the add a few entries to the path. When I open up a terminal these paths are not set in the environment. It is probably because zprofile never gets loaded at all.
Offline
/etc/profile is not a part of the regular list of startup files run for Zsh, but is sourced from /etc/zsh/zprofile in the zsh package. Users should take note that /etc/profile sets the $PATH variable which will overwrite any $PATH variable set in ~/.zshenv. To prevent this, please set the $PATH variable in ~/.zshrc. (It's not recommended to replace the default one line in /etc/zsh/zprofile with something other, it'll break the integrality of other packages which provide some scripts in /etc/profile.d)
Jin, Jîyan, Azadî
Offline