qubes.OpenURL 192 B

12345678910111213141516
  1. #!/bin/sh
  2. read url
  3. case "$url" in
  4. http://*|\
  5. https://*|\
  6. ftp://*)
  7. exec qubes-open "$url"
  8. ;;
  9. *)
  10. echo "Invalid URL" >&2
  11. exit 1
  12. ;;
  13. esac