summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvis Angelaccio <elvis.angelaccio@kde.org>2018-09-16 11:42:58 +0200
committerElvis Angelaccio <elvis.angelaccio@kde.org>2018-10-21 14:48:54 +0200
commitac14acb98b732b112280089d3a4b5085583db33f (patch)
treecce8af552dc25406c3beb6049bc77e9598b29513
parent5d1c0a63d3de30e590711390323de4b2a49dfcfb (diff)
downloadshared-mime-info-ac14acb98b732b112280089d3a4b5085583db33f.tar.gz
Add application/zstd IANA type
https://bugs.freedesktop.org/show_bug.cgi?id=107282 Upstream page: https://facebook.github.io/zstd/ Magic number documented at: https://github.com/facebook/zstd/blob/dev/doc/zstd_compression_format.md#zstandard-frames
-rw-r--r--freedesktop.org.xml.in8
-rw-r--r--tests/list2
-rw-r--r--tests/test.zstbin0 -> 491 bytes
3 files changed, 10 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index e45ea209..cd9e2975 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -3908,6 +3908,14 @@ command to generate the output files.
<glob pattern="*.tar.xz"/>
<glob pattern="*.txz"/>
</mime-type>
+ <mime-type type="application/zstd">
+ <_comment>Zstandard archive</_comment>
+ <generic-icon name="package-x-generic"/>
+ <magic priority="60">
+ <match type="little32" value="0xFD2FB528" offset="0"/>
+ </magic>
+ <glob pattern="*.zst"/>
+ </mime-type>
<mime-type type="application/x-xzpdf">
<_comment>PDF document (XZ-compressed)</_comment>
<sub-class-of type="application/x-xz"/>
diff --git a/tests/list b/tests/list
index e512991a..dcdde531 100644
--- a/tests/list
+++ b/tests/list
@@ -414,6 +414,8 @@ archive.lrz application/x-lrzip
test.lz4 application/x-lz4
# Created using Ark 16.07.70 + libarchive 3.2.0
test.tar.lz4 application/x-lz4-compressed-tar ox
+# Created by zstd v1.3.5
+test.zst application/zstd
# Copied from http://download.microsoft.com/download/7/e/5/7e58b1ce-d9e6-40e1-9d75-140fe5dd3de6/fuji.themepack
fuji.themepack application/x-windows-themepack ox
# Extracted from http://mozilla.doslash.org/stuff/helloworld.zip
diff --git a/tests/test.zst b/tests/test.zst
new file mode 100644
index 00000000..49f0b05d
--- /dev/null
+++ b/tests/test.zst
Binary files differ