qubes-run-terminal 462 B

123456789101112
  1. #!/bin/sh
  2. # Try to find a terminal emulator that's installed and run it.
  3. for terminal in x-terminal-emulator gnome-terminal xfce4-terminal konsole urxvt rxvt termit terminator Eterm aterm roxterm termite lxterminal mate-terminal terminology st xterm; do
  4. # bogus warning from ShellCheck < 0.5.0
  5. # shellcheck disable=SC2039
  6. if type "$terminal" >/dev/null 2>&1 ; then
  7. exec "$terminal"
  8. fi
  9. done
  10. echo "ERROR: No suitable terminal found." >&2