mirror of https://github.com/wb2osz/direwolf.git
Revise dw-start.sh to rely on PATH for finding and invoking an X terminal emulator
This commit is contained in:
parent
6207e2eb3e
commit
06097a1a81
12
dw-start.sh
12
dw-start.sh
|
@ -83,15 +83,15 @@ DWCMD="direwolf -a 100"
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
if [ -x /usr/bin/lxterminal ]
|
if [ $(which lxterminal) ]
|
||||||
then
|
then
|
||||||
/usr/bin/lxterminal -t "Dire Wolf" -e "$DWCMD" &
|
lxterminal -t "Dire Wolf" -e "$DWCMD" &
|
||||||
elif [ -x /usr/bin/xterm ]
|
elif [ $(which xterm) ]
|
||||||
then
|
then
|
||||||
/usr/bin/xterm -bg white -fg black -e "$DWCMD" &
|
xterm -bg white -fg black -e "$DWCMD" &
|
||||||
elif [ -x /usr/bin/x-terminal-emulator ]
|
elif [ $(which x-terminal-emulator) ]
|
||||||
then
|
then
|
||||||
/usr/bin/x-terminal-emulator -e "$DWCMD" &
|
x-terminal-emulator -e "$DWCMD" &
|
||||||
else
|
else
|
||||||
echo "Did not find an X terminal emulator."
|
echo "Did not find an X terminal emulator."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue