I have the following scenario:
Ubuntu 16.04 (Xenial Xerus) machine with Firefox and Google Chrome installed, Chrome being my default browser.
I check these actions in the shell:
cat /usr/share/applications/defaults.list
cat /etc/mailcap
cat /.config/mimeapps.list
cat /.local/share/applications/mimeinfo.cache
x-www-browser-> chrome is launch
xdg-mime query default text/html
response:
google-chrome.desktop
And it does not appear Firefox by any side, always Chrome. This is fine. Also check:
Click on a desktop file file.html → Chrome is launched.
And now comes the strange behaviour. Say I run:
xdg-open "http://www.example.com"
For some strange reason, it always opens Firefox. What should I do?