From 77f8febe5bc74f7350b14dd809f29545347a2982 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sat, 14 Feb 2015 10:39:15 +0100 Subject: [PATCH] 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. --- .xinitrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.xinitrc b/.xinitrc index 003ca54..5c58a44 100755 --- a/.xinitrc +++ b/.xinitrc @@ -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") DEFAULT_SESSION=awesome +[[ ":$PATH:" == *":$HOME/bin:"* ]] || export PATH="$PATH:$HOME/bin" + case "$1" in awesome|default|"") exec awesome