In my system (Fedora 17) something is wrong with XDG.
In Nautilus when I click on for example Excel sheet (XLS), it opens OpenOffice correctly. The file properties shows the proper MIME type.
But in the command line, when I try to xdg-open it, it opens Firefox. I can see the XDG tools shows incorrect MIME type:
# xdg-mime query filetype RadGridExport.xls text/html
What can be wrong? How to fix this? Thanks!