Adding custom PATH to .xinitrc

The WM not being started with a login shell, the user preference aren't loaded. For example, awesome's quick exec bar cannot profit from the .zshrc custom PATH. Setting it in the .xinitrc solves this problem.
This commit is contained in:
Rodolphe Breard 2015-02-14 10:39:15 +01:00
parent 2dc3dcdc5a
commit 77f8febe5b

View file

@ -7,6 +7,8 @@ hash xscreensaver 2>/dev/null && xscreensaver -no-splash &
hash gpg-agent 2>/dev/null && eval $(gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info") hash gpg-agent 2>/dev/null && eval $(gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info")
DEFAULT_SESSION=awesome DEFAULT_SESSION=awesome
[[ ":$PATH:" == *":$HOME/bin:"* ]] || export PATH="$PATH:$HOME/bin"
case "$1" in case "$1" in
awesome|default|"") awesome|default|"")
exec awesome exec awesome