From 810f700ced289a27962a8ec31587f5557ea740db Mon Sep 17 00:00:00 2001 From: Albert Zhang Date: Mon, 5 Mar 2018 20:16:47 -0500 Subject: move `xterm` to top of terminal checking order Makes more sense, as `xterm` is much more common than any of the others and we only need a barebones terminal anyway. This also solves errors caused by issues such as https://github.com/mono/mono/issues/6752 --- src/SMAPI.Installer/unix-launcher.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/SMAPI.Installer/unix-launcher.sh b/src/SMAPI.Installer/unix-launcher.sh index 2542a286..6e796461 100644 --- a/src/SMAPI.Installer/unix-launcher.sh +++ b/src/SMAPI.Installer/unix-launcher.sh @@ -71,12 +71,12 @@ else else x-terminal-emulator -e "$LAUNCHER" fi + elif $COMMAND xterm 2>/dev/null; then + xterm -e "$LAUNCHER" elif $COMMAND xfce4-terminal 2>/dev/null; then xfce4-terminal -e "$LAUNCHER" elif $COMMAND gnome-terminal 2>/dev/null; then gnome-terminal -e "$LAUNCHER" - elif $COMMAND xterm 2>/dev/null; then - xterm -e "$LAUNCHER" elif $COMMAND konsole 2>/dev/null; then konsole -e "$LAUNCHER" elif $COMMAND terminal 2>/dev/null; then -- cgit