about summary refs log tree commit diff
path: root/pkgs/profpatsch/xdg-open/xdg-open.dhall
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/profpatsch/xdg-open/xdg-open.dhall')
-rw-r--r--pkgs/profpatsch/xdg-open/xdg-open.dhall4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/profpatsch/xdg-open/xdg-open.dhall b/pkgs/profpatsch/xdg-open/xdg-open.dhall
index a7daebe3..03f168c3 100644
--- a/pkgs/profpatsch/xdg-open/xdg-open.dhall
+++ b/pkgs/profpatsch/xdg-open/xdg-open.dhall
@@ -91,6 +91,10 @@ let xdg-open =
 
                     set -e
                     file="$1"
+                    mime=
+
+                    # match on protocols
+                    # if you want to match files reliably, start with file://
                     case "$file" in
                     ${prettyLines
                         { indent = 2