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.dhall3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/profpatsch/xdg-open/xdg-open.dhall b/pkgs/profpatsch/xdg-open/xdg-open.dhall
index cbd9654e..8d6648b2 100644
--- a/pkgs/profpatsch/xdg-open/xdg-open.dhall
+++ b/pkgs/profpatsch/xdg-open/xdg-open.dhall
@@ -37,7 +37,7 @@ let shellEscapeCommand =
                         }
                         arg
                   )
-                  (cmd.args file)
+                  (cmd.args (config.Arg.Variable file))
             )
         : Text
 
@@ -73,6 +73,7 @@ let xdg-open =
           → write-dash
               "xdg-open"
               ''
+              set -e
               file="$1"
               mime=$(${bins.get-mime-type} "$file")