feat: fallback to xdg-open

This commit is contained in:
Klesh Wong 2021-09-19 01:06:06 +08:00
parent 711b908f4a
commit aa26ae447a

View File

@ -2,5 +2,11 @@
case $(uname -r) in
*microsoft*) powershell.exe -noprofile start-process "'$@'";;
*) exo-open "$@" 1>/dev/null 2>&1;;
*)
if command -v exo-open >/dev/null 2>&1; then
exo-open "$@" 1>/dev/null 2>&1
else
xdg-open "$@"
fi
;;
esac