update release notes, tweak launch script comments (#640)
This commit is contained in:
parent
99a4b2a3b9
commit
f8e32f4433
|
@ -6,6 +6,7 @@ These changes have not been released yet.
|
||||||
* Updated for Stardew Valley 1.4.
|
* Updated for Stardew Valley 1.4.
|
||||||
* Improved performance.
|
* Improved performance.
|
||||||
* Updated mod compatibility list.
|
* Updated mod compatibility list.
|
||||||
|
* Rewrote launch script on Linux to improve compatibility (thanks to kurumushi and toastal!).
|
||||||
* Fixed Save Backup not pruning old backups if they're uncompressed.
|
* Fixed Save Backup not pruning old backups if they're uncompressed.
|
||||||
* Fixed issues when a farmhand reconnects before the game notices they're disconnected.
|
* Fixed issues when a farmhand reconnects before the game notices they're disconnected.
|
||||||
* Fixed 'received message' logs shown in non-developer mode.
|
* Fixed 'received message' logs shown in non-developer mode.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# MonoKickstart Shell Script
|
# MonoKickstart Shell Script
|
||||||
# Written by Ethan "flibitijibibo" Lee
|
# Written by Ethan "flibitijibibo" Lee
|
||||||
# Modified for StardewModdingAPI by Viz and Pathoschild
|
# Modified for SMAPI by various contributors
|
||||||
|
|
||||||
# Move to script's directory
|
# Move to script's directory
|
||||||
cd "$(dirname "$0")" || exit $?
|
cd "$(dirname "$0")" || exit $?
|
||||||
|
@ -61,9 +61,7 @@ else
|
||||||
COMMAND="type"
|
COMMAND="type"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# open SMAPI in terminal
|
# select terminal (prefer $TERMINAL for overrides and testing, then xterm for best compatibility, then known supported terminals)
|
||||||
# First let's try xterm (best compatiblity) or find a sensible default
|
|
||||||
# Setting TERMINAL should let you override this at the commandline for easier testing of other terminals.
|
|
||||||
for terminal in "$TERMINAL" xterm x-terminal-emulator kitty terminator xfce4-terminal gnome-terminal konsole terminal termite; do
|
for terminal in "$TERMINAL" xterm x-terminal-emulator kitty terminator xfce4-terminal gnome-terminal konsole terminal termite; do
|
||||||
if $COMMAND "$terminal" 2>/dev/null; then
|
if $COMMAND "$terminal" 2>/dev/null; then
|
||||||
# Find the true shell behind x-terminal-emulator
|
# Find the true shell behind x-terminal-emulator
|
||||||
|
@ -72,15 +70,15 @@ else
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
export LAUNCHTERM="$(basename "$(readlink -ef which x-terminal-emulator)")"
|
export LAUNCHTERM="$(basename "$(readlink -ef which x-terminal-emulator)")"
|
||||||
# Remember that we are using x-terminal-emulator just in case it points outside the $PATH
|
# Remember that we're using x-terminal-emulator just in case it points outside the $PATH
|
||||||
export XTE=1
|
export XTE=1
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# if no terminal was found, run in current shell or with no output
|
||||||
if [ -z "$LAUNCHTERM" ]; then
|
if [ -z "$LAUNCHTERM" ]; then
|
||||||
# We failed to detect a terminal, run in current shell, or with no output
|
|
||||||
sh -c 'TERM=xterm $LAUNCHER'
|
sh -c 'TERM=xterm $LAUNCHER'
|
||||||
if [ $? -eq 127 ]; then
|
if [ $? -eq 127 ]; then
|
||||||
$LAUNCHER --no-terminal
|
$LAUNCHER --no-terminal
|
||||||
|
@ -88,7 +86,7 @@ else
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Now let's run the terminal and account for quirks, or if no terminal was found, run in the current process.
|
# run in selected terminal and account for quirks
|
||||||
case $LAUNCHTERM in
|
case $LAUNCHTERM in
|
||||||
terminator)
|
terminator)
|
||||||
# Terminator converts -e to -x when used through x-terminal-emulator for some reason
|
# Terminator converts -e to -x when used through x-terminal-emulator for some reason
|
||||||
|
|
Loading…
Reference in New Issue