update mimeapps

Former-commit-id: 8c43e65000
This commit is contained in:
Hadi
2025-03-22 17:46:47 +01:00
parent ad194bb96d
commit 1a1b5e9d07

View File

@@ -1,6 +1,13 @@
# Mime allows us to configure the default applications for each file type # Mime allows us to configure the default applications for each file type
{ {
xdg.mimeApps = { xdg = {
enable = true;
mime.enable = true;
userDirs.enable = true;
portal.xdgOpenUsePortal = true;
configFile."mimeapps.list".force =
true; # don't error when mimeapps.list is replaced, it gets replaced often
mimeApps = {
enable = true; enable = true;
defaultApplications = { defaultApplications = {
"text/markdown" = "nvim.desktop"; "text/markdown" = "nvim.desktop";
@@ -26,6 +33,7 @@
"x-scheme-handler/http" = "zen.desktop"; "x-scheme-handler/http" = "zen.desktop";
"x-scheme-handler/https" = "zen.desktop"; "x-scheme-handler/https" = "zen.desktop";
"text/html" = "zen.desktop"; "text/html" = "zen.desktop";
"inode/directory" = "thunar.desktop";
"application/pdf" = "zathura.desktop"; "application/pdf" = "zathura.desktop";
"image/png" = "imv-dir.desktop"; "image/png" = "imv-dir.desktop";
"x-scheme-handler/chrome" = "zen.desktop"; "x-scheme-handler/chrome" = "zen.desktop";
@@ -37,4 +45,5 @@
"application/x-extension-xht" = "zen.desktop"; "application/x-extension-xht" = "zen.desktop";
}; };
}; };
};
} }