xdg: Set firefox as default browser
Strangely, it has been working until recently without explicit configuration (probably starting chromium changed it by setting something stateful).
This commit is contained in:
parent
a962fea3a8
commit
c0a130fa59
|
@ -3,11 +3,18 @@
|
||||||
{
|
{
|
||||||
xdg.mimeApps = {
|
xdg.mimeApps = {
|
||||||
enable = nixosConfig.sbruder.gui.enable;
|
enable = nixosConfig.sbruder.gui.enable;
|
||||||
defaultApplications = {
|
defaultApplications =
|
||||||
"application/pdf" = "org.pwmt.zathura.desktop";
|
let
|
||||||
"image/png" = "mpv.desktop";
|
browser = "firefox.desktop";
|
||||||
"image/jpeg" = "mpv.desktop";
|
in
|
||||||
};
|
{
|
||||||
|
"application/pdf" = "org.pwmt.zathura.desktop";
|
||||||
|
"image/jpeg" = "mpv.desktop";
|
||||||
|
"image/png" = "mpv.desktop";
|
||||||
|
"text/html" = browser;
|
||||||
|
"x-scheme-handler/http" = browser;
|
||||||
|
"x-scheme-handler/https" = browser;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# Some programs overwrite the mimeapps.list symlink with a normal file which
|
# Some programs overwrite the mimeapps.list symlink with a normal file which
|
||||||
# makes home-manager activation fail
|
# makes home-manager activation fail
|
||||||
|
|
Loading…
Reference in a new issue