diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 17:06:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 17:06:32 +0000 |
commit | 2dad5357405ad33cfa792f04b3ab62a5d188841e (patch) | |
tree | b8f8893942060fe3cfb04ac374cda96fdfc8f453 /src/external_tools/launcher.sh | |
parent | Initial commit. (diff) | |
download | remmina-upstream/1.4.34+dfsg.tar.xz remmina-upstream/1.4.34+dfsg.zip |
Adding upstream version 1.4.34+dfsg.upstream/1.4.34+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/external_tools/launcher.sh')
-rwxr-xr-x | src/external_tools/launcher.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/external_tools/launcher.sh b/src/external_tools/launcher.sh new file mode 100755 index 0000000..ff056cc --- /dev/null +++ b/src/external_tools/launcher.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +#################### +# Main Script +#################### + +TERMINALS="xfce4-terminal gnome-terminal x-terminal-emulator" + +for t in $TERMINALS; do + TERMBIN="$(command -v "$t")" + if [ "$?" -eq 0 ]; then + case "$t" in + xfce4-terminal) + TERMBIN="$TERMBIN --disable-server" + break + ;; + gnome-terminal) + break + ;; + x-terminal-emulator) + break + ;; + esac + fi +done + +$TERMBIN -e "$1" & + |