Where to change how xdg-open opens urls? sync with kde-open?

Solution 1:

It looks like xdg-open has internal settings at least I could make it open different browser than the one set within update-alternatives.

$ xdg-settings --list
Known properties:
  default-url-scheme-handler    Default handler for URL scheme
  default-web-browser           Default web browser

$ xdg-settings get default-web-browser
chromium.desktop

$ update-alternatives --display x-www-browser
x-www-browser - auto mode
  link best version is /usr/bin/firefox
  link currently points to /usr/bin/firefox
  link x-www-browser is /usr/bin/x-www-browser
/usr/bin/chromium-browser - priority 40
/usr/bin/firefox - priority 40

To fix that:

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

Verify:

$ xdg-settings get default-web-browser
firefox.desktop
$ xdg-open "http://askubuntu.com/"
[opens firefox now]