firefox-esr installed. I want
to default to the latter when opening a web URL.
There are /etc/alternatives entries for
gnome-www-browser that can be manually edited using
# update-alternatives --config gnome-www-browser # update-alternatives --config x-www-browser
Unsuprisingly, this won’t have the desired effect. Life would be too simple…
The default browser for GNOME applications is determined using
gvfs-mime. Per-user overrides can be specified in
defaults are generated by
The mimeinfo.cache is basically a raw reverse cache for the .desktop information. There is no way to define priorities in it. To be able to specify default applications, a mimeapps.list file (previously named defaults.list up to debian 5) must be created. It can be system-wide (in /usr/share/applications or a subdirectory) or user-specific (in $HOME/.local/share/applications).
And indeed the fix was to reorder the list from
and create the following file:
1 2 3