So, I noticed that this doesn't allow you to get icons based on data type. That doesn't mean it's not a good idea, just that we should keep the idea of a plugin API for MIME type detection in mind.
On Tue, 2005-08-16 at 09:49 +0100, Mike Hearn wrote: > > That is *spectacularly* broken. I assume the ogg people have been > > larted for this? > > It's also very common: QuickTime MOV and Windows AVI files work exactly the > same > way. Neither has to contain video although they usually do. Even if the Ogg > guys > were publically larted and vowed to reform we'd still have to deal with that. > > Short of some plugin API for MIME type detection (which I've wanted since > forever) a hack could be to have a simple Ogg Handler program that figured > out > what the 'closest' MIME type is and then forwards the open file request to > that > program. If the Ogg file contains video, it'd go to whatever app handles > video/x-theora, if not then it goes to whatever app handles application/x-ogg. > > Ditto for any other container types that cannot be distinguished by file > extension (are there any others?) > > thanks -mike > _______________________________________________ > xdg mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/xdg > _______________________________________________ xdg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xdg
