Merge pull request #425 from EnderHDMC/develop

This commit is contained in:
Jesse Plamondon-Willard 2018-01-19 21:29:54 -05:00
commit 374a8ababe
2 changed files with 9 additions and 1 deletions

View File

@ -5,6 +5,7 @@
* Fixed error parsing `config.json` files containing curly quotes.
* Fixed error parsing JSON files generated on another platform.
* Fixed error parsing some JSON files after mods reload core assemblies, which is no longer allowed.
* Fixed error on Linux loading SMAPI when the default terminal is set to Terminator.
* For the [log parser][]:
* Fixed parse error for logs with zero installed mods.

View File

@ -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