Richard Heck wrote: > xdg-open should open different things depending upon the extension. Here, > e.g., xdg-open file.tex opens kile.
xdg-open knows nothing about extensions. it just passes the control to the desktop manager, i.e. it detect in a hackish style what dm you use and then sends the file to its control. if you do not belong the the mainstream dm like kde or gnome, the fallback goes to some mime handling which works only in some distros and then you have fallback on firefox. we have already flame about this and i dont want to repat it again ;) the summary is that we should use our own defined viewers for formats we know. pavel