diff options
author | David Faure <faure@kde.org> | 2023-11-03 16:53:08 +0100 |
---|---|---|
committer | David Faure <faure@kde.org> | 2023-11-05 09:44:33 +0000 |
commit | 933714e212e6386fce7dabbc0ca82c579eb27b1a (patch) | |
tree | e01c7a91502df3a9347e7ef9c340e3934104589d /data | |
parent | 35eca7eccc1a56a1d195af43ff37c8a7f7fbd67b (diff) |
Give higher priority to the more specific image/apng magic
Otherwise it's unclear which of image/png and image/apng should win.
The spec doesn't say that one should check if one match is a subclass
of another, for magic matching, it says priority is used for this:
"Low numbers should be used for more generic types (such as 'gzip
compressed data') and higher values for specific subtypes (such as a
word processor format that happens to use gzip to compress the file)."
Found when porting QtCore to shared-mime-info-2.3.
Diffstat (limited to 'data')
-rw-r--r-- | data/freedesktop.org.xml.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index c112060..cc7d877 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -5420,7 +5420,7 @@ command to generate the output files. <acronym>PNG</acronym> <expanded-acronym>Portable Network Graphics</expanded-acronym> <sub-class-of type="image/png"/> - <magic> + <magic priority="60"> <match type="string" value="\x89PNG\r\n\x1A\n" offset="0"> <match type="string" value="acTL" offset="37"/> </match> |