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/types.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/types.dhall')
-rw-r--r-- | pkgs/profpatsch/xdg-open/types.dhall | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pkgs/profpatsch/xdg-open/types.dhall b/pkgs/profpatsch/xdg-open/types.dhall index b7ae944b..e878ce86 100644 --- a/pkgs/profpatsch/xdg-open/types.dhall +++ b/pkgs/profpatsch/xdg-open/types.dhall @@ -27,18 +27,13 @@ let MimeMatch = { mime : Mime, cmd : Command } -let - -- Handler of an uri glob. Mime maps the uri to a file handler. Transparent is a command which, when run, returns a mimetype of the file. - UriGlobHandler = - < Transparent : Command | Mime : MimeMatch > - let UriMimeGlob = { desc : Text , -- less specific than glob, used by firefox to refer to the schema schema-prefix : List Text , -- schema shell glob to check whether a link corresponds to the schema glob : List Text - , handler : UriGlobHandler + , handler : MimeMatch } in { Mime @@ -47,7 +42,6 @@ in { Mime , CommandTemplate , Command , Special - , UriGlobHandler , UriMimeGlob , MimeMatch } |