summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan BrĂ¼ns <stefan.bruens@rwth-aachen.de>2020-05-04 23:27:18 +0200
committerBastien Nocera <hadess@hadess.net>2020-05-06 13:54:36 +0000
commit3b1a9313396de96776393347dabd2458634073bf (patch)
tree1292ca3d2e96b7134cea99da5e6725f20f6792ed
parent46de194a96c74060949fe4ec357d384037c6ac15 (diff)
downloadshared-mime-info-3b1a9313396de96776393347dabd2458634073bf.tar.gz
Add Apple System Profiler XML mime-type
Apples "system_profiler" can save information about the machine in XML format and uses the *.spx extension. Fixes #105.
-rw-r--r--data/freedesktop.org.xml.in9
-rw-r--r--tests/mime-detection/list2
-rw-r--r--tests/mime-detection/test_apple_systemprofiler.spx7
3 files changed, 18 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 1e5b29b8..1c17b8d4 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -457,6 +457,15 @@ command to generate the output files.
</magic>
<alias type="application/x-sqlite3"/>
</mime-type>
+ <mime-type type="application/x-apple-systemprofiler+xml">
+ <comment>Apple System Profiler</comment>
+ <sub-class-of type="application/xml"/>
+ <magic priority="50">
+ <match type="string" value="&lt;plist version=&quot;1.0&quot;" offset="0:256"/>
+ </magic>
+ <glob pattern="*.spx" weight="40"/>
+ <root-XML namespaceURI="http://www.apple.com/DTDs/PropertyList-1.0.dtd" localName="plist"/>
+ </mime-type>
<mime-type type="application/x-gedcom">
<comment>GEDCOM family history</comment>
<acronym>GEDCOM</acronym>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 9a033218..2384487a 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -402,6 +402,8 @@ sample1.nzb application/x-nzb
test.owx application/owl+xml
# Copied from https://en.wikipedia.org/wiki/Portable_Game_Notation#Example
test.pgn application/vnd.chess-pgn
+# From KDE kfilemetadata test suite
+test_apple_systemprofiler.spx application/x-apple-systemprofiler+xml x
# Archives
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=14909
diff --git a/tests/mime-detection/test_apple_systemprofiler.spx b/tests/mime-detection/test_apple_systemprofiler.spx
new file mode 100644
index 00000000..28834e96
--- /dev/null
+++ b/tests/mime-detection/test_apple_systemprofiler.spx
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<array>
+<!-- Incomplete file, used to test for extension mismatch vs Speex *.spx -->
+</array>
+</plist>