summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <exalm7659@gmail.com>2020-11-07 23:41:00 +0500
committerAlexander Mikhaylenko <exalm7659@gmail.com>2020-11-08 04:51:13 +0500
commit34d4f099de981758d7896345fa9ae138a168534a (patch)
tree27bc6f0f74685f1ec0686412cc50d33c1152c316
parent513d0a33669653ff2957a16c91da7cb0396b4f76 (diff)
downloadshared-mime-info-34d4f099de981758d7896345fa9ae138a168534a.tar.gz
Add magic for image/x-3ds
The next commit will add another MIME type with the same glob, avoid breakage.
-rw-r--r--data/freedesktop.org.xml.in3
-rw-r--r--tests/mime-detection/list2
-rw-r--r--tests/mime-detection/zeb.3dsbin0 -> 1024 bytes
3 files changed, 5 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index ba33762e..9d57cb1f 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -5021,6 +5021,9 @@ command to generate the output files.
<mime-type type="image/x-3ds">
<comment>3D Studio image</comment>
<glob pattern="*.3ds"/>
+ <magic priority="30">
+ <match offset="0" type="big16" value="0x4d4d"/>
+ </magic>
</mime-type>
<mime-type type="image/x-applix-graphics">
<comment>Applix Graphics image</comment>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 3c28ff2e..92499711 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -115,6 +115,8 @@ folder.svg image/svg+xml
# Copied from https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/116#note_225851
terminal-app.svg image/svg+xml
network-symbolic.svg image/svg+xml
+# Zeb model from http://www.geo-metricks.com/geo-shop/shop-htm/free-object-info.htm truncated to 1Ko
+zeb.3ds image/x-3ds x
# Documents
ooo-6.0.doc application/msword
diff --git a/tests/mime-detection/zeb.3ds b/tests/mime-detection/zeb.3ds
new file mode 100644
index 00000000..f35c63c9
--- /dev/null
+++ b/tests/mime-detection/zeb.3ds
Binary files differ