From c30d7b4150e21e6e6533328e6f382ac07d599fd3 Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 9 Aug 2023 12:29:39 +0900 Subject: feat(home/browsing): use qutebrowser for xdg-open --- home/profiles/browsing/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'home/profiles/browsing') diff --git a/home/profiles/browsing/default.nix b/home/profiles/browsing/default.nix index da69908..54a44fc 100644 --- a/home/profiles/browsing/default.nix +++ b/home/profiles/browsing/default.nix @@ -38,5 +38,16 @@ in url.start_pages = "https://searx.be"; }; }; + + xdg.mimeApps = lib.mkIf pkgs.stdenv.isLinux { + enable = true; + defaultApplications = { + "x-scheme-handler/http" = [ "org.qutebrowser.qutebrowser.desktop" ]; + "x-scheme-handler/https" = [ "org.qutebrowser.qutebrowser.desktop" ]; + "text/html" = [ "org.qutebrowser.qutebrowser.desktop" ]; + "x-scheme-handler/about" = [ "org.qutebrowser.qutebrowser.desktop" ]; + "x-scheme-handler/unknown" = [ "org.qutebrowser.qutebrowser.desktop" ]; + }; + }; }; } -- cgit 1.4.1