summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-12-02 19:56:50 -0500
committerGitHub <noreply@github.com>2019-12-02 19:56:50 -0500
commitfcf313bd3dd84935ea86cd02b4066f31ebb00229 (patch)
treef914cb7bb4baf2579ac6a2e3d6accc66830ec52e /src
parent2888c0d74cf72a58fd8cb10344d5929354d71c1a (diff)
parent286f0f8c1e81e7052312f19d73fc0dfe36313859 (diff)
downloadSMAPI-fcf313bd3dd84935ea86cd02b4066f31ebb00229.tar.gz
SMAPI-fcf313bd3dd84935ea86cd02b4066f31ebb00229.tar.bz2
SMAPI-fcf313bd3dd84935ea86cd02b4066f31ebb00229.zip
Merge pull request #669 from archification/develop
Add alacritty support to unix-launcher.sh
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.Installer/unix-launcher.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/SMAPI.Installer/unix-launcher.sh b/src/SMAPI.Installer/unix-launcher.sh
index f81828f0..bebba9fe 100644
--- a/src/SMAPI.Installer/unix-launcher.sh
+++ b/src/SMAPI.Installer/unix-launcher.sh
@@ -62,7 +62,7 @@ else
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 x-terminal-emulator; do
+ for terminal in "$TERMINAL" 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
@@ -100,6 +100,14 @@ else
# Kitty overrides the TERM varible unless you set it explicitly
kitty -o term=xterm $LAUNCHER
;;
+ alacritty)
+ # Alacritty doesn't like the double quotes or the variable
+ if [ "$ARCH" == "x86_64" ]; then
+ alacritty -e sh -c 'TERM=xterm ./StardewModdingAPI.bin.x86_64 $*'
+ else
+ alacritty -e sh -c 'TERM=xterm ./StardewModdingAPI.bin.x86 $*'
+ fi
+ ;;
xterm|xfce4-terminal|gnome-terminal|terminal|termite)
$LAUNCHTERM -e "sh -c 'TERM=xterm $LAUNCHER'"
;;