From 1b3a6a514f2812c2cd386ef787821f5418045014 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Thu, 30 May 2019 19:06:09 -0400 Subject: [PATCH] fix readlink commands in launcher not working in ZorinOS (#640) --- src/SMAPI.Installer/unix-launcher.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SMAPI.Installer/unix-launcher.sh b/src/SMAPI.Installer/unix-launcher.sh index 0ca5c852..71ed103d 100644 --- a/src/SMAPI.Installer/unix-launcher.sh +++ b/src/SMAPI.Installer/unix-launcher.sh @@ -65,11 +65,11 @@ else 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 # Find the true shell behind x-terminal-emulator - if [ "$(basename "$(readlink -ef which "$terminal")")" != "x-terminal-emulator" ]; then + if [ "$(basename "$(readlink -f $(which "$terminal"))")" != "x-terminal-emulator" ]; then export LAUNCHTERM=$terminal break; else - export LAUNCHTERM="$(basename "$(readlink -ef which x-terminal-emulator)")" + export LAUNCHTERM="$(basename "$(readlink -f $(which x-terminal-emulator))")" # Remember that we're using x-terminal-emulator just in case it points outside the $PATH export XTE=1 break;