We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6207e2e commit 06097a1Copy full SHA for 06097a1
dw-start.sh
@@ -83,15 +83,15 @@ DWCMD="direwolf -a 100"
83
#
84
85
86
-if [ -x /usr/bin/lxterminal ]
+if [ $(which lxterminal) ]
87
then
88
- /usr/bin/lxterminal -t "Dire Wolf" -e "$DWCMD" &
89
-elif [ -x /usr/bin/xterm ]
+ lxterminal -t "Dire Wolf" -e "$DWCMD" &
+elif [ $(which xterm) ]
90
91
- /usr/bin/xterm -bg white -fg black -e "$DWCMD" &
92
-elif [ -x /usr/bin/x-terminal-emulator ]
+ xterm -bg white -fg black -e "$DWCMD" &
+elif [ $(which x-terminal-emulator) ]
93
94
- /usr/bin/x-terminal-emulator -e "$DWCMD" &
+ x-terminal-emulator -e "$DWCMD" &
95
else
96
echo "Did not find an X terminal emulator."
97
fi
0 commit comments