xdg-mime query filetype|default

Stefan.Kost at nokia.com Stefan.Kost at nokia.com
Mon Jun 25 23:46:01 PDT 2007


I have two issues I feel a bit lost about regarding the shared-mime
> xdg-mime query filetype song.ogg

but according to the matching rules in
/usr/share/mime/packages/freedesktop.org.xml it should reply with
the rule is correct (I checked the file with hexdump -C) and the
priority is higher than the generic application/ogg.

I have 
>xdg-mime --version
xdg-mime 1.0.1

The second issue is that I can't figure out how to associate mime-types
with applications during software installation. My app has own
data-files that I would like to register right away. The project also
has some optional packages wth plugins. When those are installed I would
like to install the xml-file with the mime-info (if type is not yet
know) and associate more mime-types with my app, unless they are already

There is some information on
but e.g. that
part requires at least the addition of a namespace declaration in the
xml file. Besides it has no effect. Any pointers?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/xdg/attachments/20070626/3c59faa7/attachment.html 

More information about the xdg mailing list