summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2020-12-27 19:28:38 +0100
committerDavid Faure <faure@kde.org>2020-12-30 16:15:17 +0000
commitd09c791a28ab939c92f8d58856b046f8f0ae5d77 (patch)
treee3204fee92ae31e2ff9dbb7c924433c7e732d4b9 /data
parent02c51b9e07666011b81e0b518e9c16cf9ed88eae (diff)
downloadshared-mime-info-d09c791a28ab939c92f8d58856b046f8f0ae5d77.tar.gz
Adapt to xdgmime behaviour change.work/dfaure/adapt_to_xdgmime_change
As the spec says, if the result from magic sniffing doesn't match one of the globs, ignore it and return one of the globs. With this change, test-garbage.key (which was already a doubtful testcase, see !5) no longer falls back to application/octet-stream but to one of the globs. test-really-html-not-xhtml.html is also fixed by this, it's detected as text/html. Closes: #138.
Diffstat (limited to 'data')
-rw-r--r--data/freedesktop.org.xml.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 8bc631df..0ef5c608 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -1825,6 +1825,7 @@ command to generate the output files.
<magic priority="50">
<match type="string" value="SEGA PICO" offset="256"/>
</magic>
+ <glob pattern="*.iso"/>
</mime-type>
<mime-type type="application/x-saturn-rom">
<comment>Sega Saturn disc image</comment>
@@ -1841,6 +1842,7 @@ command to generate the output files.
<magic priority="50">
<match type="string" value="SEGA SEGAKATANA" offset="16"/>
</magic>
+ <glob pattern="*.iso"/>
</mime-type>
<mime-type type="application/x-nintendo-ds-rom">
<comment>Nintendo DS ROM</comment>