There's no need to include the priority value on fd.o.xml; I was thinking they should have a reasonable default, and if a package wants to overload an existing mime type they should define the priority value. Anything else should be considered a bug.<div>

 <br clear="all"><div>J. Leclanche</div>
<br><br><div class="gmail_quote">On Tue, Mar 19, 2013 at 1:22 PM, David Faure <span dir="ltr"><<a href="mailto:faure@kde.org" target="_blank">faure@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Tuesday 05 March 2013 13:28:15 Thomas Kluyver wrote:<br>
> In the file structure, the priority attribute is a property of the magic<br>
> matching rule, not of the mimetype. The description in the spec, on the<br>
> other hand, seems to be relevant to the Mimetype overall: "Low numbers<br>
> should be used for more generic types (such as 'gzip compressed data') and<br>
> higher values for specific subtypes (such as a word processor format that<br>
> happens to use gzip to compress the file)."<br>
><br>
> So does it make sense to use this even when we're not using the magic<br>
> matching rules?<br>
<br>
</div>No, the "glob weight" is what should be used to choose between two globs.<br>
<br>
But I guess the question is "what if the weights are the same?". Well, same<br>
globs, same weight, and same magic (or no magic), is a complete conflict, I<br>
don't think there's anything sensible to do other than fixing the mimetype xml<br>
(which has been done for this case already).<br>
<br>
Maybe Jerome meant addin a new package-level priority value, so that<br>
freedesktop.org.xml always has priority over weird 3rd-party mimetype<br>
definitions. But I'm not sure we really want that.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
David Faure, <a href="mailto:faure@kde.org">faure@kde.org</a>, <a href="http://www.davidfaure.fr" target="_blank">http://www.davidfaure.fr</a><br>
Working on KDE, in particular KDE Frameworks 5<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
xdg mailing list<br>
<a href="mailto:xdg@lists.freedesktop.org">xdg@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/xdg" target="_blank">http://lists.freedesktop.org/mailman/listinfo/xdg</a><br>
</div></div></blockquote></div><br></div>