fix readlink commands in launcher not working in ZorinOS (#640)

This commit is contained in:
Jesse Plamondon-Willard 2019-05-30 19:06:09 -04:00
parent b9dec73469
commit 1b3a6a514f
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
1 changed files with 2 additions and 2 deletions

View File

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