summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-05-30 19:06:09 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 18:01:44 -0400
commit1b3a6a514f2812c2cd386ef787821f5418045014 (patch)
tree975e6d0a9420524c9d9662fd08428f1290eed2df /src
parentb9dec734693f50b3b32977cd505f091a2c8b8382 (diff)
downloadSMAPI-1b3a6a514f2812c2cd386ef787821f5418045014.tar.gz
SMAPI-1b3a6a514f2812c2cd386ef787821f5418045014.tar.bz2
SMAPI-1b3a6a514f2812c2cd386ef787821f5418045014.zip
fix readlink commands in launcher not working in ZorinOS (#640)
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.Installer/unix-launcher.sh4
1 files 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;