qubes-run-gnome-terminal 419 B

1234567891011
  1. #!/bin/sh
  2. # Wrapper around gnome-terminal that runs it with --wait option
  3. # (if supoported).
  4. # Check if our gnome-terminal version supports --wait
  5. # (we can't just run it and check exit code, because if it works, it will
  6. # return the exit code of the child process)
  7. case "$(gnome-terminal --help-terminal-options)" in
  8. *--wait\ *) exec gnome-terminal --wait "$@" ;;
  9. *) exec gnome-terminal "$@" ;;
  10. esac