diff options
-rw-r--r-- | share/functions/open.fish | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/functions/open.fish b/share/functions/open.fish index 6a8665c5..140269ee 100644 --- a/share/functions/open.fish +++ b/share/functions/open.fish @@ -6,7 +6,11 @@ if not test (uname) = Darwin function open -d (N_ "Open file in default application") - mimedb -l -- $argv + if type -f xdg-open >/dev/null + xdg-open $argv + else + mimedb -l -- $argv + end end end |