summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer/unix-launcher.sh
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-12-07 19:24:27 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-12-07 19:24:27 -0500
commit47beb2f5345670be5fc1ba5ec109835f6a67e7a0 (patch)
tree4576bebdfdaef1c7ae4a8d24c3b7e828358a35d1 /src/SMAPI.Installer/unix-launcher.sh
parent49080501d3929be4f954c5c93483a6254005f435 (diff)
downloadSMAPI-47beb2f5345670be5fc1ba5ec109835f6a67e7a0.tar.gz
SMAPI-47beb2f5345670be5fc1ba5ec109835f6a67e7a0.tar.bz2
SMAPI-47beb2f5345670be5fc1ba5ec109835f6a67e7a0.zip
fix launcher compatibility on Arch Linux
Arch Linux sets the $TERMINAL variable, which makes SMAPI think the terminal is being overridden for testing and bypass the terminal selection logic. Since it's only used for testing, we can re-add it locally when needed.
Diffstat (limited to 'src/SMAPI.Installer/unix-launcher.sh')
-rw-r--r--src/SMAPI.Installer/unix-launcher.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI.Installer/unix-launcher.sh b/src/SMAPI.Installer/unix-launcher.sh
index bebba9fe..1422d888 100644
--- a/src/SMAPI.Installer/unix-launcher.sh
+++ b/src/SMAPI.Installer/unix-launcher.sh
@@ -61,8 +61,8 @@ else
COMMAND="type"
fi
- # select terminal (prefer $TERMINAL for overrides and testing, then xterm for best compatibility, then known supported terminals)
- for terminal in "$TERMINAL" xterm gnome-terminal kitty terminator xfce4-terminal konsole terminal termite alacritty x-terminal-emulator; do
+ # select terminal (prefer xterm for best compatibility, then known supported terminals)
+ for terminal in xterm gnome-terminal kitty terminator xfce4-terminal konsole terminal termite alacritty x-terminal-emulator; do
if $COMMAND "$terminal" 2>/dev/null; then
# Find the true shell behind x-terminal-emulator
if [ "$(basename "$(readlink -f $(which "$terminal"))")" != "x-terminal-emulator" ]; then