[xdg] unified config

This commit is contained in:
Simon Cornet 2024-04-15 16:15:39 +02:00
parent c07ed9c130
commit de1aa3f493
2 changed files with 7 additions and 10 deletions

View File

@ -13,6 +13,13 @@
"application/pdf" = ["org.gnome.Evince.desktop"]; "application/pdf" = ["org.gnome.Evince.desktop"];
"application/x-pdf" = ["org.gnome.Evince.desktop"]; "application/x-pdf" = ["org.gnome.Evince.desktop"];
# firefox
"text/html" = ["firefox.desktop"];
"x-scheme-handler/http" = ["firefox.desktop"];
"x-scheme-handler/https" = ["firefox.desktop"];
"x-scheme-handler/about" = ["firefox.desktop"];
"x-scheme-handler/unknown" = ["firefox.desktop"];
# images # images
"image/bmp" = [ "org.gnome.Loupe.desktop" ]; "image/bmp" = [ "org.gnome.Loupe.desktop" ];
"image/gif" = [ "org.gnome.Loupe.desktop" ]; "image/gif" = [ "org.gnome.Loupe.desktop" ];

View File

@ -13,16 +13,6 @@
xdg-desktop-portal-wlr xdg-desktop-portal-wlr
]; ];
# xdg mime
xdg.mime.enable = true;
xdg.mime.defaultApplications = {
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"x-scheme-handler/about" = "firefox.desktop";
"x-scheme-handler/unknown" = "firefox.desktop";
};
# gnome # gnome
services.xserver.displayManager.gdm.enable = true; services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true; services.xserver.desktopManager.gnome.enable = true;