diff options
author | Profpatsch <mail@profpatsch.de> | 2021-05-12 23:37:42 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-05-12 23:42:13 +0200 |
commit | 986330f5162b308e63d8ae228d54240c1e73ad90 (patch) | |
tree | 8ec55bc3f9d935549859baf42f7964afdec93a0b /pkgs/profpatsch/xdg-open/config.dhall | |
parent | ba600abbfe2a123a5293511a21aec18b9d7d4818 (diff) |
pkgs/profpatsch/xdg-open: directly pass MimeMatch to xdg-open script
No use in passing through the mime type now that we can just directly render the commands in the protocol handlers. This gives us the base for generating the Firefox handlers.json.
Diffstat (limited to 'pkgs/profpatsch/xdg-open/config.dhall')
-rw-r--r-- | pkgs/profpatsch/xdg-open/config.dhall | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/profpatsch/xdg-open/config.dhall b/pkgs/profpatsch/xdg-open/config.dhall index 2b1fb686..13810b3a 100644 --- a/pkgs/profpatsch/xdg-open/config.dhall +++ b/pkgs/profpatsch/xdg-open/config.dhall @@ -141,37 +141,37 @@ in λ(pkgs : { package : Text, binary : Text } → Executable) → let TODO = UriGlobHandler.Transparent special.fetch-http-url-mime - in UriGlobHandler.Mime mime.text.html.mime + in UriGlobHandler.Mime mime.text.html } , { desc = "gemini link" , glob = [ "gemini://*" ] , schema-prefix = [ "gemini" ] - , handler = UriGlobHandler.Mime mime.text.gemini.mime + , handler = UriGlobHandler.Mime mime.text.gemini } , { desc = "gemini link" , glob = [ "gopher://*", "gophers://*" ] , schema-prefix = [ "gopher", "gophers" ] - , handler = UriGlobHandler.Mime mime.text.gopher.mime + , handler = UriGlobHandler.Mime mime.text.gopher } , { glob = [ "mailto:*" ] , desc = "mail address" , schema-prefix = [ "mailto" ] - , handler = UriGlobHandler.Mime mime.mail-address.mime + , handler = UriGlobHandler.Mime mime.mail-address } , { glob = [ "magnet:*" ] , desc = "bittorrent magnet link" , schema-prefix = [ "magnet" ] - , handler = UriGlobHandler.Mime mime.torrent.mime + , handler = UriGlobHandler.Mime mime.torrent } , { desc = "irc channel" , glob = [ "irc:*", "ircs:*" ] , schema-prefix = [ "irc", "ircs" ] - , handler = UriGlobHandler.Mime mime.irc.mime + , handler = UriGlobHandler.Mime mime.irc } , { desc = "local file" , glob = [ "file://*" ] , schema-prefix = [ "file" ] - , handler = UriGlobHandler.Mime mime.file.mime + , handler = UriGlobHandler.Mime mime.file } ] |