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.
This commit is contained in:
parent
49080501d3
commit
47beb2f534
|
@ -5,6 +5,7 @@
|
|||
|
||||
* For players:
|
||||
* Updated for the 'Force Off' gamepad mode added in Stardew Valley 1.4.0.1.
|
||||
* Fixed compatibility issue with Arch Linux.
|
||||
|
||||
* For the web UI:
|
||||
* If a JSON validator upload can't be saved to Pastebin (e.g. due to rate limits), it's now uploaded to Amazon S3 instead. Files uploaded to S3 expire after one month.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue