diff options
author | Profpatsch <mail@profpatsch.de> | 2021-05-13 14:20:01 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-05-13 14:20:01 +0200 |
commit | 24d08e79bb64db79453095af10ab083349991db3 (patch) | |
tree | 8e3ea70406752d2fbe0f4a435d6ae24b2e22006e /pkgs/profpatsch/xdg-open/xdg-open.dhall | |
parent | 853de0c1f0c84bd4231d08cb4f893ffb70b9c294 (diff) |
pkgs/profpatsch/xdg-open: Remove UriGlobHandler
The concept of a transparent handler wasn’t actually used anywhere and now that we want to generate the firefox json as well, it just hinders us from doing that in an easy way.
Diffstat (limited to 'pkgs/profpatsch/xdg-open/xdg-open.dhall')
-rw-r--r-- | pkgs/profpatsch/xdg-open/xdg-open.dhall | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/pkgs/profpatsch/xdg-open/xdg-open.dhall b/pkgs/profpatsch/xdg-open/xdg-open.dhall index 66ab88a3..c4655c6a 100644 --- a/pkgs/profpatsch/xdg-open/xdg-open.dhall +++ b/pkgs/profpatsch/xdg-open/xdg-open.dhall @@ -72,27 +72,10 @@ let xdg-open = Text Text ( λ(match : Text) → - merge - { Mime = - λ(mime : types.MimeMatch) → - [ "${match})" - , shellEscapeExecCommand - shellEscape2 - file2 - mime.cmd - , ";;" - ] - , Transparent = - λ(cmd : types.Command) → - [ "${match})" - , "mime=\"\$(${shellEscapeExecCommand - shellEscape2 - file2 - cmd})\"" - , ";;" - ] - } - g.handler + [ "${match})" + , shellEscapeExecCommand shellEscape2 file2 g.handler.cmd + , ";;" + ] ) g.glob : List Text |