Stop Edge from taking over default browser
I downloaded Edge to get Xbox game pass streaming on linux and since then it's taken over as default browser and keeps overriding the system setting which is set to Firefox. Doesn't appear to be a setting for it to stop taking over in Edge. Has anyone had luck keeping Firefox as the default browser? Tried google, but it all I could find was people complaining about the same problem in Ubuntu.
Posted Aug 11, 2022, 4:16 AM UTC
Easiest way I can think of is to launch edge with a script that makes your default-browser setting read-only while edge is still running. Something like so:
This should(?) prevent all programs from changing any default file or url handlers while edge is running.
There are other solutions:
sudoersmagic). You can make that user have the same home directory and primary group as your "normal" user, and make your home directoryg+rw, but your mimeapps.listg-w. This has the advantage of only preventing edge from changing your defaults, even while it is running. It has the disadvantage of being a bit of a hack, honestly.edit:
Instead of
chmod'ing mimeapps.list, you couldxdg-settings set default-web-browser firefox.desktop. You would need to know when edge is changing your default (when edge starts up? when it closes?), and adjust the script accordingly. Something as simple as:might work. This has the advantage of not preventing any program (including edge!) from changing your defaults, but rather immediately changing the default back as soon as edge closes.