Skip to content

Commit

Permalink
Added explicit PATH specification to xlshrc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrin committed Oct 14, 2011
1 parent ee75002 commit a16e497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etc/xlshrc
Expand Up @@ -9,11 +9,12 @@ screen_h=$(xwininfo -root | grep Height | cut -f2 -d':')
px=$(($screen_w/2 - 240))
py=$(($screen_h/2 - 150))

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
export PATH
if ! which xlsh; then
xmessage -center 'xlsh cannot be found in PATH!'
exit 1
fi

xrdb -merge "$XRESFILE"
xsetroot -solid "$BGCOLOR"
exec $TERMINAL -g 80x24+$px+$py $(which xlsh)

0 comments on commit a16e497

Please sign in to comment.