summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2023-11-03 17:03:25 +0100
committerDavid Faure <faure@kde.org>2023-11-07 22:32:00 +0000
commit5ad11d90d8a9b7d00c3524e766ada40d3b938d29 (patch)
tree1bfc1f0f99617a94c44b35a06f644f1f7ca6c5f2
parent72efdf1e80a827d144339b21f05c619560480a4d (diff)
Lower priority for text/x-mpsub's magic, so it doesn't match pcb-drillFile.drl
FORMAT= in the first 128 bytes is very unspecific magic, it happens to match pcb-drillFile.drl too (which is a application/x-excellon file, and can be detected as such because it starts with M48) Found when porting QtCore to shared-mime-info 2.3
-rw-r--r--data/freedesktop.org.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 7778c41..347e9e9 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -4096,7 +4096,7 @@ command to generate the output files.
<mime-type type="text/x-mpsub">
<comment>MPlayer subtitles</comment>
<sub-class-of type="text/plain"/>
- <magic>
+ <magic priority="40">
<match type="string" value="FORMAT=" offset="0:256"/>
</magic>
<glob pattern="*.sub"/>