I have the following scenario: Ubuntu 16.04 machine with firefox and chrome installed, chrome being my default browser.
I check this 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 does not appear firefox by any side, always chrome. This is fine. Also check:
Click on a desktop file file.html -> chrome is launch
And now comes the strange, if I run:
xdg-open "http://www.example.com"
For some strange reason it always opens firefox. I do not know why, could anyone help me?