fix(home/xdg): Fix mime-apps pointing to unused zen-browser

This commit is contained in:
punkfairie 2025-03-06 19:21:18 -08:00
parent f4bc48e211
commit ed083f95f7
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6

View file

@ -49,21 +49,24 @@ in {
mimeApps = rec {
enable = true;
associations.added = {
associations.added = let
browser = "${lib.getName config.marleyos.apps.browser}";
in {
"application/json" = ["nvim.desktop"];
"application/pdf" = ["org.pwmt.zathura-pdf-mupdf.desktop"];
"application/xhtml+xml" = ["zen-alpha.desktop"];
"application/x-extension-htm" = ["zen-alpha.desktop"];
"application/x-extension-html" = ["zen-alpha.desktop"];
"application/x-extension-shtml" = ["zen-alpha.desktop"];
"application/x-extension-xhtml" = ["zen-alpha.desktop"];
"application/x-extension-xht" = ["zen-alpha.desktop"];
"image/png" = ["feh.desktop"];
"text/html" = ["zen-alpha.desktop"];
"application/xhtml+xml" = ["${browser}.desktop"];
"application/x-extension-htm" = ["${browser}.desktop"];
"application/x-extension-html" = ["${browser}.desktop"];
"application/x-extension-shtml" = ["${browser}.desktop"];
"application/x-extension-xhtml" = ["${browser}.desktop"];
"application/x-extension-xht" = ["${browser}.desktop"];
# TODO: Install a proper image viewer
# "image/png" = ["feh.desktop"];
"text/html" = ["${browser}.desktop"];
"text/plain" = ["nvim.desktop"];
"x-scheme-handler/chrome" = ["zen-alpha.desktop"];
"x-scheme-handler/http" = ["zen-alpha.desktop"];
"x-scheme-handler/https" = ["zen-alpha.desktop"];
"x-scheme-handler/chrome" = ["${browser}.desktop"];
"x-scheme-handler/http" = ["${browser}.desktop"];
"x-scheme-handler/https" = ["${browser}.desktop"];
};
defaultApplications = associations.added;