qubes-run-gnome-terminal 414 B

123456789101112
  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. if gnome-terminal --help-terminal-options | grep --silent -- --wait; then
  8. exec gnome-terminal --wait "$@"
  9. else
  10. exec gnome-terminal "$@"
  11. fi