about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-18 09:26:38 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-18 09:26:38 -0800
commit9be9dc863015f482d76b84a11fde839a61e5a4af (patch)
treefd6e1b273b8726ace190df3ce4cef1eeb483a4c2
parentpass: minor adjustments (diff)
downloadworld-9be9dc863015f482d76b84a11fde839a61e5a4af.tar.gz
xdg: add default application
Diffstat (limited to '')
-rw-r--r--users/fcuny/desktop/xdg.nix13
1 files changed, 13 insertions, 0 deletions
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 = {