Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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:

STARTUP/SHUTDOWN FILES

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

 
discard

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.