How to setup default browser

browsermime-types

How to change default browser for opening url-s ?

For sanity check, I tried:

xdg-open 'http://unix.stackexchange.com'

And it opens in other browser. I found information about assigning applications to filetypes with xdg-mime default xpdf.desktop application/pdf . However I don't know how to apply this knowledge for url ? Does url have mimetype ?

Best Answer

I'm assuming you want to change the default application opened for URLs
The easy way to change this is using gnome-control-center info and changing the default application.

Yes, the schema type is

x-scheme-handler/http=
x-scheme-handler/https=

each followed by the application.desktop you want to open http

Here is a sample mimeapps.list with chromium as the http app

Related Question