From 06097a1a81b44c7db4cb90a4e8d44f9f99cc8879 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Fri, 24 Mar 2017 23:15:44 -0500 Subject: [PATCH] Revise dw-start.sh to rely on PATH for finding and invoking an X terminal emulator --- dw-start.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dw-start.sh b/dw-start.sh index ac86396..68bf450 100644 --- a/dw-start.sh +++ b/dw-start.sh @@ -83,15 +83,15 @@ DWCMD="direwolf -a 100" # -if [ -x /usr/bin/lxterminal ] +if [ $(which lxterminal) ] then - /usr/bin/lxterminal -t "Dire Wolf" -e "$DWCMD" & -elif [ -x /usr/bin/xterm ] + lxterminal -t "Dire Wolf" -e "$DWCMD" & +elif [ $(which xterm) ] then - /usr/bin/xterm -bg white -fg black -e "$DWCMD" & -elif [ -x /usr/bin/x-terminal-emulator ] + xterm -bg white -fg black -e "$DWCMD" & +elif [ $(which x-terminal-emulator) ] then - /usr/bin/x-terminal-emulator -e "$DWCMD" & + x-terminal-emulator -e "$DWCMD" & else echo "Did not find an X terminal emulator." fi