From 2799c259f29bba1c99069ddb4d6ca506cb423a7f Mon Sep 17 00:00:00 2001 From: Sense T Date: Tue, 4 Jul 2023 13:10:43 +0800 Subject: [PATCH] update --- home/user/xdg.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/home/user/xdg.nix b/home/user/xdg.nix index 98de850..14c55a4 100644 --- a/home/user/xdg.nix +++ b/home/user/xdg.nix @@ -1,11 +1,21 @@ -{ +let + defaultBrowser = "io.gitlab.librewolf-community.desktop"; + defaultFileManager = "ranger.desktop"; +in { xdg = { enable = true; mimeApps = { enable = true; defaultApplications = { - "x-scheme-handler/http" = "io.gitlab.librewolf-community.desktop"; - "x-scheme-handler/https" = "io.gitlab.librewolf-community.desktop"; + # Default web browser. + "text/html" = defaultBrowser; + "x-scheme-handler/http" = defaultBrowser; + "x-scheme-handler/https" = defaultBrowser; + "x-scheme-handler/about" = defaultBrowser; + "x-scheme-handler/unknown" = defaultBrowser; + + # Default file manager. + "inode/directory" = defaultFileManager; }; }; };