summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-09-18 17:49:36 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-09-18 17:49:36 -0400
commit43a3af1a671c46b48b4c4eb5ab1552d1177cb9fb (patch)
tree99dace618dbcf42962a9bdeaf18470a0cfd5d28f /src
parent5f8674e8a37c9fda5561b66910e571420000a219 (diff)
downloadSMAPI-43a3af1a671c46b48b4c4eb5ab1552d1177cb9fb.tar.gz
SMAPI-43a3af1a671c46b48b4c4eb5ab1552d1177cb9fb.tar.bz2
SMAPI-43a3af1a671c46b48b4c4eb5ab1552d1177cb9fb.zip
prefer xterm when launching SMAPI
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.Installer/unix-launcher.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI.Installer/unix-launcher.sh b/src/SMAPI.Installer/unix-launcher.sh
index 1e969c20..b64c021c 100644
--- a/src/SMAPI.Installer/unix-launcher.sh
+++ b/src/SMAPI.Installer/unix-launcher.sh
@@ -62,7 +62,9 @@ else
fi
# open SMAPI in terminal
- if $COMMAND x-terminal-emulator 2>/dev/null; then
+ if $COMMAND xterm 2>/dev/null; then
+ xterm -e "$LAUNCHER"
+ elif $COMMAND x-terminal-emulator 2>/dev/null; then
# Terminator converts -e to -x when used through x-terminal-emulator for some reason (per
# `man terminator`), which causes an "unable to find shell" error. If x-terminal-emulator
# is mapped to Terminator, invoke it directly instead.
@@ -71,8 +73,6 @@ else
else
x-terminal-emulator -e "$LAUNCHER"
fi
- elif $COMMAND xterm 2>/dev/null; then
- xterm -e "$LAUNCHER"
elif $COMMAND xfce4-terminal 2>/dev/null; then
xfce4-terminal -e "env TERM=xterm; $LAUNCHER"
elif $COMMAND gnome-terminal 2>/dev/null; then