Change Xdg Open Behaviour
In order to check which software will open a given mime type:
xdg-mime query default text/html
And to change the default:
xdg-mime default firefox.desktop test/html
This will create an entry on ~/.config/mimeapps.list
of the form:
text/html=firefox.desktop;
Then you can use xdg-open
to open the file with the correct software