I want to set Chromium as my default web browser in Gnome.

I could use the GUI (Settings → Details → Default Applications), but I much prefer to script such customizations using gsettings or similar cli tools.

As far as I can tell there's no setting for this in gsettings or dconf. Can it be done? Where does Gnome store these settings?


For 18.04, this works

xdg-settings set default-web-browser chromium-browser.desktop

update-alternatives sets the default browser for the soft links x-www-browser and gnome-www-browser. But these soft links seem no longer used by the system by default.

It looks none of these is stored in the dconf system.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.