From 9be9dc863015f482d76b84a11fde839a61e5a4af Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 18 Feb 2022 09:26:38 -0800 Subject: xdg: add default application --- users/fcuny/desktop/xdg.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/users/fcuny/desktop/xdg.nix b/users/fcuny/desktop/xdg.nix index 44a5ce1..a932a61 100644 --- a/users/fcuny/desktop/xdg.nix +++ b/users/fcuny/desktop/xdg.nix @@ -10,6 +10,19 @@ mimeApps = { enable = true; + defaultApplications = + let defaultBrowser = "firefox.desktop"; + in { + "x-scheme-handler/http" = [ defaultBrowser ]; + "x-scheme-handler/https" = [ defaultBrowser ]; + "x-scheme-handler/chrome" = [ defaultBrowser ]; + "application/x-extension-htm" = [ defaultBrowser ]; + "application/x-extension-html" = [ defaultBrowser ]; + "application/x-extension-shtml" = [ defaultBrowser ]; + "application/xhtml+xml" = [ defaultBrowser ]; + "application/x-extension-xhtml" = [ defaultBrowser ]; + "application/x-extension-xht" = [ defaultBrowser ]; + }; }; userDirs = { -- cgit 1.4.1