about summary refs log tree commit diff
path: root/pkgs/profpatsch/xdg-open/config.dhall
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2020-05-10 00:12:12 +0200
committerProfpatsch <mail@profpatsch.de>2020-05-10 00:12:12 +0200
commitb97e85f21b082e9f06f3ef1655cc0c15c3b2e472 (patch)
treebbe573676796a1dab8a34c01e97614be256e1ba0 /pkgs/profpatsch/xdg-open/config.dhall
parent0adf4290a0eaab8b907d34f66c4831c3493b25fb (diff)
pkgs/profpatsch/xdg-open: implement special commands
Diffstat (limited to 'pkgs/profpatsch/xdg-open/config.dhall')
-rw-r--r--pkgs/profpatsch/xdg-open/config.dhall8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/profpatsch/xdg-open/config.dhall b/pkgs/profpatsch/xdg-open/config.dhall
index 32b5d7cf..0550c94a 100644
--- a/pkgs/profpatsch/xdg-open/config.dhall
+++ b/pkgs/profpatsch/xdg-open/config.dhall
@@ -10,7 +10,7 @@ let Arg = < String : Text | Variable : Text >
 let CommandTemplate =
       λ(templates : Type) → { exe : Executable, args : templates → List Arg }
 
-let Command = CommandTemplate Text
+let Command = CommandTemplate Arg
 
 let mime =
       { text =
@@ -74,7 +74,7 @@ let mimeMatcher =
 
         let oneArg =
                 λ(exe : Executable)
-              → { exe = exe, args = λ(file : Text) → [ Arg.Variable file ] }
+              → { exe = exe, args = λ(file : Arg) → [ file ] }
 
         let m =
               λ(match : Mime) → λ(cmd : Command) → { match = match, cmd = cmd }
@@ -91,11 +91,11 @@ let mimeMatcher =
                 , cmd =
                   { exe = pkgs { package = "gnupg", binary = "gpg" }
                   , args =
-                        λ(file : Text)
+                        λ(file : Arg)
                       → [ Arg.String "--import"
                         , Arg.String "--import-options"
                         , Arg.String "show-only"
-                        , Arg.Variable file
+                        , file
                         ]
                   }
                 }