From 0d1737778cf81304ec37cea2a1c0e934bb84e601 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Wed, 12 May 2021 23:05:28 +0200 Subject: pkgs/profpatsch/xdg-open: prepare for adding firefox handler support This diff is a bit bad cause of whitespace changes, but effectively this copies all handlers into the mime handler definitions and duplicates them for now. We want to use the same config to generate a firefox mime handler file. --- pkgs/profpatsch/xdg-open/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs/profpatsch/xdg-open/default.nix') diff --git a/pkgs/profpatsch/xdg-open/default.nix b/pkgs/profpatsch/xdg-open/default.nix index 89114b92..2b265318 100644 --- a/pkgs/profpatsch/xdg-open/default.nix +++ b/pkgs/profpatsch/xdg-open/default.nix @@ -54,6 +54,8 @@ let args = file: [ file ]; }; + + open-in-browser = { exe = bins.firefox; args = file: [ file ]; @@ -117,6 +119,7 @@ let , fetch-http-url-mime : Command , open-in-browser : Command , open-in-editor : Command + , notify : Text -> Command } ) → Text @@ -125,6 +128,7 @@ let main = "xdg-open.dhall"; files = [ "config.dhall" + "types.dhall" "imports/Prelude/Text/concatSep" "imports/Prelude/Text/concatMap" "imports/Prelude/Text/concat" -- cgit 1.4.1