summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2021-10-11 17:56:02 +0200
committerkbroulik <kde@privat.broulik.de>2021-12-02 22:06:08 +0000
commit7ce55f3fa4cee8b95bb511491dac1a4b31da84ef (patch)
tree55dcd3d665a820e08076910de4d103c239fae728
parent5a406b06792e26a83c7346b3c2443c0bd8d4cdb2 (diff)
downloadshared-mime-info-7ce55f3fa4cee8b95bb511491dac1a4b31da84ef.tar.gz
Add Apple Wallet pass type application/vnd.apple.pkpass
De-facto standard mentioned by Apple in [1] and [2]. [1] https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/PassKit_PG/DistributingPasses.html [2] https://developer.apple.com/documentation/walletpasses/send_an_updated_pass
-rw-r--r--data/freedesktop.org.xml.in10
-rw-r--r--tests/mime-detection/boardingpass.pkpassbin0 -> 5123 bytes
-rw-r--r--tests/mime-detection/list1
3 files changed, 11 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 27e2bd6b..15dd2f78 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -7463,6 +7463,16 @@ command to generate the output files.
<glob pattern="*.pages"/>
<alias type="application/x-iwork-pages-sffpages"/>
</mime-type>
+ <mime-type type="application/vnd.apple.pkpass">
+ <comment>Apple Wallet pass</comment>
+ <sub-class-of type="application/zip"/>
+ <magic priority="65">
+ <match type="string" value="PK\003\004" offset="0">
+ <match type="string" value="pass.json" offset="30"/>
+ </match>
+ </magic>
+ <glob pattern="*.pkpass"/>
+ </mime-type>
<mime-type type="application/x-pagemaker">
<comment>Adobe PageMaker document</comment>
diff --git a/tests/mime-detection/boardingpass.pkpass b/tests/mime-detection/boardingpass.pkpass
new file mode 100644
index 00000000..ebba7f09
--- /dev/null
+++ b/tests/mime-detection/boardingpass.pkpass
Binary files differ
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index d9cc56dc..e3f9a84b 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -764,6 +764,7 @@ subshapes.swf application/vnd.adobe.flash.movie
pci.mod application/x-object x
# PIE executable https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/11
ls application/x-executable x
+boardingpass.pkpass application/vnd.apple.pkpass
hello.xdgapp application/vnd.flatpak
hello.flatpak application/vnd.flatpak