Skip to content

Commit 06097a1

Browse files
author
Kyle Evans
committed
Revise dw-start.sh to rely on PATH for finding and invoking an X terminal emulator
1 parent 6207e2e commit 06097a1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: dw-start.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ DWCMD="direwolf -a 100"
8383
#
8484

8585

86-
if [ -x /usr/bin/lxterminal ]
86+
if [ $(which lxterminal) ]
8787
then
88-
/usr/bin/lxterminal -t "Dire Wolf" -e "$DWCMD" &
89-
elif [ -x /usr/bin/xterm ]
88+
lxterminal -t "Dire Wolf" -e "$DWCMD" &
89+
elif [ $(which xterm) ]
9090
then
91-
/usr/bin/xterm -bg white -fg black -e "$DWCMD" &
92-
elif [ -x /usr/bin/x-terminal-emulator ]
91+
xterm -bg white -fg black -e "$DWCMD" &
92+
elif [ $(which x-terminal-emulator) ]
9393
then
94-
/usr/bin/x-terminal-emulator -e "$DWCMD" &
94+
x-terminal-emulator -e "$DWCMD" &
9595
else
9696
echo "Did not find an X terminal emulator."
9797
fi

0 commit comments

Comments
 (0)