summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Alfredo Garciliano Díaz <giobeatle10@gmail.com>2021-09-13 17:25:05 -0500
committerDavid Faure <faure@kde.org>2021-10-10 08:06:30 +0000
commit0a8e0c3bad7c146f9e15682a2339eace3c62690e (patch)
tree300daddbba2fa0c897f53d705e9d7dc5269095fc
parent5798f5cef884a9d201ee3c73061f0a82fde69bee (diff)
downloadshared-mime-info-0a8e0c3bad7c146f9e15682a2339eace3c62690e.tar.gz
Adding ZIM file
-rw-r--r--data/freedesktop.org.xml.in9
-rw-r--r--tests/mime-detection/list2
-rw-r--r--tests/mime-detection/test.zimbin0 -> 122521 bytes
3 files changed, 11 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 49ac2769..984ad200 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -7759,4 +7759,13 @@ command to generate the output files.
<sub-class-of type="text/plain"/>
<glob pattern="*.org"/>
</mime-type>
+ <mime-type type="application/x-openzim">
+ <comment>OpenZIM file</comment>
+ <acronym>ZIM</acronym>
+ <expanded-acronym>Zeno IMproved</expanded-acronym>
+ <glob pattern="*.zim"/>
+ <magic priority="50">
+ <match type="string" value="\x5a\x49\x4d\x04" offset="0"/>
+ </magic>
+ </mime-type>
</mime-info>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 17257fa0..d9cc56dc 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -867,3 +867,5 @@ test.avifs image/avif
# Org-mode file
test.org text/org ox
+# OpenZIM file
+test.zim application/x-openzim \ No newline at end of file
diff --git a/tests/mime-detection/test.zim b/tests/mime-detection/test.zim
new file mode 100644
index 00000000..b113499a
--- /dev/null
+++ b/tests/mime-detection/test.zim
Binary files differ