Added compatibility with even more terminals

This commit is contained in:
lqdev 2018-11-09 22:27:20 +01:00 committed by GitHub
parent 8cfada7e8b
commit 76f1a37c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ else
# `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"
terminator -e "sh -c 'TERM=xterm $LAUNCHER'"
else
x-terminal-emulator -e "sh -c 'TERM=xterm $LAUNCHER'"
fi
@ -80,9 +80,9 @@ else
elif $COMMAND konsole 2>/dev/null; then
konsole -p Environment=TERM=xterm -e "$LAUNCHER"
elif $COMMAND terminal 2>/dev/null; then
terminal -e "$LAUNCHER"
terminal -e "sh -c 'TERM=xterm $LAUNCHER'"
else
$LAUNCHER
sh -c 'TERM=xterm $LAUNCHER'
fi
# some Linux users get error 127 (command not found) from the above block, even though