run-xmonad.sh: don't hard-code path to mkfifo.

mkfifo isn't located in /sbin on all distributions (Gentoo puts it in /bin).
By temporarily appending /sbin to PATH both setups are supported.
'which' and friends are not viable options since /sbin usually isn't in
user's PATH by default.
This commit is contained in:
joachim.fasting 2007-06-19 12:42:12 +00:00
parent da5e7b9e2a
commit f650b2c4f3

View File

@ -20,7 +20,7 @@ PATH=${HOME}/bin:$PATH
# #
PIPE=$HOME/.xmonad-status PIPE=$HOME/.xmonad-status
rm -f $PIPE rm -f $PIPE
/sbin/mkfifo -m 600 $PIPE PATH=${PATH}:/sbin mkfifo -m 600 $PIPE
[ -p $PIPE ] || exit [ -p $PIPE ] || exit
# launch the external 60 second clock, and launch the workspace status bar # launch the external 60 second clock, and launch the workspace status bar