Fix wrong mime .desktop associations
This commit is contained in:
@ -200,6 +200,14 @@ rec {
|
|||||||
(mylib.modules.mkLink "~/NixFlake/config/obsidian/latex_snippets.json" "~/Notes/Obsidian/Chriphost/latex_snippets.json");
|
(mylib.modules.mkLink "~/NixFlake/config/obsidian/latex_snippets.json" "~/Notes/Obsidian/Chriphost/latex_snippets.json");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.mime.enable = true;
|
||||||
|
xdg.mimeApps = {
|
||||||
|
enable = true;
|
||||||
|
associations.added = nixosConfig.xdg.mime.addedAssociations;
|
||||||
|
associations.removed = nixosConfig.xdg.mime.removedAssociations;
|
||||||
|
defaultApplications = nixosConfig.xdg.mime.defaultApplications;
|
||||||
|
};
|
||||||
|
|
||||||
# TODO: NNN module
|
# TODO: NNN module
|
||||||
xdg.desktopEntries.nnn = {
|
xdg.desktopEntries.nnn = {
|
||||||
type = "Application";
|
type = "Application";
|
||||||
|
@ -315,12 +315,16 @@
|
|||||||
xdg.mime = {
|
xdg.mime = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
removedAssociations = {
|
||||||
|
"application/pdf" = "chromium-browser.desktop";
|
||||||
|
};
|
||||||
|
|
||||||
# TODO: This stuff depends on the used desktop...should I use a complementary system module for each DE?
|
# TODO: This stuff depends on the used desktop...should I use a complementary system module for each DE?
|
||||||
addedAssociations = {
|
addedAssociations = {
|
||||||
"application/pdf" = "zathura.desktop";
|
"application/pdf" = "org.pwmt.zathura.desktop";
|
||||||
"application/x-sh" = "helix.desktop";
|
"application/x-sh" = "Helix.desktop";
|
||||||
"application/xhtml+xml" = "helix.desktop";
|
"application/xhtml+xml" = "Helix.desktop";
|
||||||
"application/xml" = "helix.desktop";
|
"application/xml" = "Helix.desktop";
|
||||||
|
|
||||||
"image/bmp" = "imv.desktop";
|
"image/bmp" = "imv.desktop";
|
||||||
"image/jpeg" = "imv.desktop";
|
"image/jpeg" = "imv.desktop";
|
||||||
@ -336,25 +340,25 @@
|
|||||||
"video/webm" = "mpv.desktop";
|
"video/webm" = "mpv.desktop";
|
||||||
"video/x-msvideo" = "mpv.desktop";
|
"video/x-msvideo" = "mpv.desktop";
|
||||||
|
|
||||||
"text/css" = "helix.desktop";
|
"text/css" = "Helix.desktop";
|
||||||
"text/csv" = "helix.desktop";
|
"text/csv" = "Helix.desktop";
|
||||||
"text/javascript" = "helix.desktop";
|
"text/javascript" = "Helix.desktop";
|
||||||
"text/json" = "helix.desktop";
|
"text/json" = "Helix.desktop";
|
||||||
"text/plain" = "helix.desktop";
|
"text/plain" = "Helix.desktop";
|
||||||
"text/xml" = "helix.desktop";
|
"text/xml" = "Helix.desktop";
|
||||||
|
|
||||||
"audio/mpeg" = "moc.desktop";
|
# "audio/mpeg" = "moc.desktop";
|
||||||
"audio/ogg" = "moc.desktop";
|
# "audio/ogg" = "moc.desktop";
|
||||||
"audio/opus" = "moc.desktop";
|
# "audio/opus" = "moc.desktop";
|
||||||
"audio/wav" = "moc.desktop";
|
# "audio/wav" = "moc.desktop";
|
||||||
"audio/webm" = "moc.desktop";
|
# "audio/webm" = "moc.desktop";
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultApplications = {
|
defaultApplications = {
|
||||||
"application/pdf" = "zathura.desktop";
|
"application/pdf" = "org.pwmt.zathura.desktop";
|
||||||
"application/x-sh" = "helix.desktop";
|
"application/x-sh" = "Helix.desktop";
|
||||||
"application/xhtml+xml" = "helix.desktop";
|
"application/xhtml+xml" = "Helix.desktop";
|
||||||
"application/xml" = "helix.desktop";
|
"application/xml" = "Helix.desktop";
|
||||||
|
|
||||||
"image/bmp" = "imv.desktop";
|
"image/bmp" = "imv.desktop";
|
||||||
"image/jpeg" = "imv.desktop";
|
"image/jpeg" = "imv.desktop";
|
||||||
@ -370,18 +374,18 @@
|
|||||||
"video/webm" = "mpv.desktop";
|
"video/webm" = "mpv.desktop";
|
||||||
"video/x-msvideo" = "mpv.desktop";
|
"video/x-msvideo" = "mpv.desktop";
|
||||||
|
|
||||||
"text/css" = "helix.desktop";
|
"text/css" = "Helix.desktop";
|
||||||
"text/csv" = "helix.desktop";
|
"text/csv" = "Helix.desktop";
|
||||||
"text/javascript" = "helix.desktop";
|
"text/javascript" = "Helix.desktop";
|
||||||
"text/json" = "helix.desktop";
|
"text/json" = "Helix.desktop";
|
||||||
"text/plain" = "helix.desktop";
|
"text/plain" = "Helix.desktop";
|
||||||
"text/xml" = "helix.desktop";
|
"text/xml" = "Helix.desktop";
|
||||||
|
|
||||||
"audio/mpeg" = "moc.desktop";
|
# "audio/mpeg" = "moc.desktop";
|
||||||
"audio/ogg" = "moc.desktop";
|
# "audio/ogg" = "moc.desktop";
|
||||||
"audio/opus" = "moc.desktop";
|
# "audio/opus" = "moc.desktop";
|
||||||
"audio/wav" = "moc.desktop";
|
# "audio/wav" = "moc.desktop";
|
||||||
"audio/webm" = "moc.desktop";
|
# "audio/webm" = "moc.desktop";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user