~sircmpwn/dotfiles

41ea0208c095858c1ade261d62d40b61ae9a3655 — Drew DeVault a month ago a106900 master
xdg-open: open PDFs with zathura; don't use system
1 files changed, 5 insertions(+), 2 deletions(-)

M bin/xdg-open
M bin/xdg-open => bin/xdg-open +5 -2
@@ 1,12 1,15 @@
#!/bin/sh
case "${1%%:*}" in
	http|https|*.pdf)
	http|https)
		exec qutebrowser "$1"
		;;
	*.pdf)
		exec zathura "$1"
		;;
	mailto)
		exec aerc "$1"
		;;
	*)
		exec /usr/bin/xdg-open "$@"
		echo "Don't know how to open $@" >&2
		;;
esac