mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
vanadium: improve browser xdg configuration
This commit is contained in:
parent
4c4ed165b3
commit
1bec3a93a0
2 changed files with 18 additions and 25 deletions
|
|
@ -140,7 +140,7 @@ in
|
|||
"x-scheme-handler/unknown" = "firefox.desktop";
|
||||
};
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
lib.mkIf (cfg.enable && !config.programs.zen-browser.enable) {
|
||||
enable = true;
|
||||
associations.added = associations;
|
||||
defaultApplications = associations;
|
||||
|
|
|
|||
|
|
@ -134,30 +134,23 @@ in
|
|||
|
||||
xdg.mimeApps =
|
||||
let
|
||||
associations = builtins.listToAttrs (
|
||||
map
|
||||
(name: {
|
||||
inherit name;
|
||||
value = cfg.package.meta.desktopFileName;
|
||||
})
|
||||
[
|
||||
associations = lib.genAttrs [
|
||||
"application/x-extension-shtml"
|
||||
"application/x-extension-xhtml"
|
||||
"application/x-extension-html"
|
||||
"application/x-extension-xht"
|
||||
"application/x-extension-htm"
|
||||
"x-scheme-handler/unknown"
|
||||
"x-scheme-handler/mailto"
|
||||
# "x-scheme-handler/unknown"
|
||||
# "x-scheme-handler/mailto"
|
||||
"x-scheme-handler/chrome"
|
||||
"x-scheme-handler/about"
|
||||
"x-scheme-handler/https"
|
||||
"x-scheme-handler/http"
|
||||
"application/xhtml+xml"
|
||||
"application/json"
|
||||
"text/plain"
|
||||
# "application/json"
|
||||
# "text/plain"
|
||||
"text/html"
|
||||
]
|
||||
);
|
||||
] (_: cfg.package.meta.desktopFileName);
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
associations.added = associations;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue