Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use zsh as my login shell, lightdm as login manager and awesome as window manager.

I changed the PATH Variable in my ~/.zshrc and it works on the terminal, but awesome itself does not recognize the Variable change. where do i need to put the changes that i can use the PATH in awesome?

I dont want to put some of the PATH Stuff into /etc/rc.local or similar, because it contains user specific folders.

share|improve this question
up vote 0 down vote accepted

Probably lightdm does not execute an interactive shell to start awesome. So your ~/.zshrc isn't sourced -- simply use ~/.zshenv instead, which get sourced regardless if the shell is a login shell and / or an interactive shell.

From the man page:


Commands are first read from /etc/zshenv (...)

Commands are then read from $ZDOTDIR/.zshenv. If the shell is a login shell, commands are read from /etc/zprofile and then $ZDOTDIR/.zprofile. Then, if the shell is interactive, commands are read from /etc/zshrc and then $ZDOTDIR/.zshrc. Finally, if the shell is a login shell, /etc/zlogin and $ZDOTDIR/.zlogin are read. (...)

If ZDOTDIR is unset, HOME is used instead.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.