1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/sh # A wrapper for xdg-open to catch certain cases not caught by mimeapps.list case "${1%%:*}" in http|https) exec qutebrowser "$1" ;; *.pdf) exec zathura "$1" ;; mailto) exec st -e bash -i -c "mail $1" ;; *) exec /usr/bin/xdg-open "$@" ;; esac