summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-01-19 21:29:54 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-01-19 21:29:54 -0500
commit374a8ababeb1a341d5e7fe3f9a966ecca1ef6dab (patch)
tree93324738c09d347806002a35147e1c298e175a80 /src
parent568ba2757e0b2947a8578128ff8f0a70eb075b38 (diff)
parent32defd60e2e1ce4d153c567f75343111e4597684 (diff)
downloadSMAPI-374a8ababeb1a341d5e7fe3f9a966ecca1ef6dab.tar.gz
SMAPI-374a8ababeb1a341d5e7fe3f9a966ecca1ef6dab.tar.bz2
SMAPI-374a8ababeb1a341d5e7fe3f9a966ecca1ef6dab.zip
Merge pull request #425 from EnderHDMC/develop
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI/unix-launcher.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/SMAPI/unix-launcher.sh b/src/SMAPI/unix-launcher.sh
index 70f1873a..2542a286 100644
--- a/src/SMAPI/unix-launcher.sh
+++ b/src/SMAPI/unix-launcher.sh
@@ -63,7 +63,14 @@ else
# open SMAPI in terminal
if $COMMAND x-terminal-emulator 2>/dev/null; then
- x-terminal-emulator -e "$LAUNCHER"
+ # 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.
+ if [[ "$(readlink -e $(which x-terminal-emulator))" == *"/terminator" ]]; then
+ terminator -e "$LAUNCHER"
+ else
+ x-terminal-emulator -e "$LAUNCHER"
+ fi
elif $COMMAND xfce4-terminal 2>/dev/null; then
xfce4-terminal -e "$LAUNCHER"
elif $COMMAND gnome-terminal 2>/dev/null; then