fix(home/xdg): Fix mime-apps pointing to unused zen-browser
This commit is contained in:
parent
f4bc48e211
commit
ed083f95f7
1 changed files with 15 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue