diff options
author | Profpatsch <mail@profpatsch.de> | 2021-05-12 23:15:48 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-05-12 23:42:13 +0200 |
commit | ba600abbfe2a123a5293511a21aec18b9d7d4818 (patch) | |
tree | f4e8946fff37f9f0807818db0f00dcbb0235cdf3 /pkgs/profpatsch/xdg-open/types.dhall | |
parent | 0d1737778cf81304ec37cea2a1c0e934bb84e601 (diff) |
pkgs/profpatsch/xdg-open: use the new matcher list
Removes the duplication of command handlers.
Diffstat (limited to 'pkgs/profpatsch/xdg-open/types.dhall')
-rw-r--r-- | pkgs/profpatsch/xdg-open/types.dhall | 5 |
1 files changed, 4 insertions, 1 deletions
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 |