<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>xdg-mime query filetype|default</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><SPAN LANG="fi"><FONT SIZE=2 FACE="Arial">hi,</FONT></SPAN>
</P>
<P><SPAN LANG="fi"><FONT SIZE=2 FACE="Arial">I have two issues I feel a bit lost about regarding the shared-mime handling.</FONT></SPAN>
<BR><SPAN LANG="fi"><FONT SIZE=2 FACE="Arial">> xdg-mime query filetype song.ogg</FONT></SPAN>
<BR><SPAN LANG="fi"><FONT SIZE=2 FACE="Arial">application/ogg</FONT></SPAN>
</P>
<P><SPAN LANG="fi"><FONT SIZE=2 FACE="Arial">but according to the matching rules in /usr/share/mime/packages/freedesktop.org.xml it should reply with</FONT></SPAN>
<BR><SPAN LANG="fi"><FONT SIZE=2 FACE="Arial">audio/x-vorbis+ogg</FONT></SPAN>
<BR><SPAN LANG="fi"><FONT SIZE=2 FACE="Arial">the rule is correct (I checked the file with hexdump -C) and the priority is higher than the generic application/ogg.</FONT></SPAN>
</P>
<P><SPAN LANG="fi"><FONT SIZE=2 FACE="Arial">I have </FONT></SPAN>
<BR><SPAN LANG="fi"><FONT SIZE=2 FACE="Arial">>xdg-mime --version</FONT></SPAN>
<BR><SPAN LANG="fi"><FONT SIZE=2 FACE="Arial">xdg-mime 1.0.1</FONT></SPAN>
</P>
<BR>
<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">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 assigned.</FONT></SPAN></P>
<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">There is some information on</FONT></SPAN>
<BR><SPAN LANG="en-us"></SPAN><A HREF="http://www.freedesktop.org/wiki/Specifications/AddingMIMETutor"><SPAN LANG="en-us"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://www.freedesktop.org/wiki/Specifications/AddingMIMETutor</FONT></U></SPAN></A><SPAN LANG="en-us"></SPAN>
<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">but e.g. that</FONT></SPAN><SPAN LANG="fi"> <FONT SIZE=2 FACE="Courier New"><desktop:can-edit-with>gimp.desktop</desktop:can-edit-with></FONT></SPAN>
<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">part requires at least the addition of a namespace declaration in the xml file. Besides it has no effect. Any pointers?</FONT></SPAN>
</P>
<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Thanks</FONT></SPAN>
<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial"> Stefan</FONT></SPAN>
</P>
<BR>
</BODY>
</HTML>