The defaults.list contains a line that says "text/html=mozilla-firefox.desktop".
That is why `xdg-open index.html` and `gvfs-open index.xhtml` run Firefox.
Nevertheless, `xdg-open index.xhtml` and `gvfs-open index.xhtml` run Konqueror (on my F-14 machine, in GNOME).
It's because gvfs-open cannot find "application/xhtml+xml" in the defaults.list file, so it checks all .desktop files that support application/xhtml+xml, and chooses the first one to open the .xhtml file. Konqueror happens to be the first. When it's uninstalled, some other program becomes the first.
This is not consistent. For example GNU Emacs users use xdg-open to show previews of HTML pages they create (Emacs is preconfigured this way), and it runs firefox for file.html and some random browser for file.xhtml.
Please consider adding the following line below the text/html line in defaults.list:
Thanks in advance.
Version-Release number of selected component:
Updated F-14, rawhide (I only checked the package source)
A typo on the third line:
is supposed to be
Done for rawhide.
For F14, right click on the file, and select Firefox as the default for this filetype in the properties.