From b97e85f21b082e9f06f3ef1655cc0c15c3b2e472 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 10 May 2020 00:12:12 +0200 Subject: pkgs/profpatsch/xdg-open: implement special commands --- pkgs/profpatsch/xdg-open/config.dhall | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pkgs/profpatsch/xdg-open/config.dhall') 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 ] } } -- cgit 1.4.1