From ba600abbfe2a123a5293511a21aec18b9d7d4818 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Wed, 12 May 2021 23:15:48 +0200 Subject: pkgs/profpatsch/xdg-open: use the new matcher list Removes the duplication of command handlers. --- pkgs/profpatsch/xdg-open/types.dhall | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkgs/profpatsch/xdg-open/types.dhall') diff --git a/pkgs/profpatsch/xdg-open/types.dhall b/pkgs/profpatsch/xdg-open/types.dhall index 74e55d32..72184ad5 100644 --- a/pkgs/profpatsch/xdg-open/types.dhall +++ b/pkgs/profpatsch/xdg-open/types.dhall @@ -36,7 +36,10 @@ let UriMimeGlob = , handler : UriGlobHandler } -let MimeMatch = { match : Mime, cmd : Command } +let + -- describes the command `cmd` to run for the matched mime type `mime` + MimeMatch = + { mime : Mime, cmd : Command } in { Mime , Executable -- cgit 1.4.1