Comment 13 for bug 1857824

Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :

specially:
"The spec hasn't changed, but I made the same mistake in xdgmime
(the reference implementation) and in Qt: when multiple globs match,
and the result from magic sniffing is unrelated to any of those globs,
then I used the magic result, but that's wrong, globs have priority
and one of them should be picked up."

and there is multiple glob matches:
<mime-type type="text/x-python3">
<glob pattern="*.py" weight="50"/><!-- lower priority than in text/x-python -->
<mime-type type="text/x-python">
<glob pattern="*.py" weight="60"/>