diff options
author | Alex Henrie <alexhenrie24@gmail.com> | 2024-04-18 20:42:00 -0600 |
---|---|---|
committer | Alex Henrie <alexhenrie24@gmail.com> | 2024-04-18 20:42:00 -0600 |
commit | 1cbcc79d7156f3797fc23790c5042159e3624474 (patch) | |
tree | d3fb91c79297dd562f33957169e5ed715ef98356 | |
parent | 2c638f913a6ff559c2f610f10e92338cd0a11cd7 (diff) |
Add application/vnd.stardivision.impress-packed
Since this is a legacy format, default to application/sdp when matching
by file name.
https://www.openoffice.org/framework/documentation/mimetypes/mimetypes.html
-rw-r--r-- | data/freedesktop.org.xml.in | 10 | ||||
-rw-r--r-- | tests/mime-detection/list | 3 | ||||
-rw-r--r-- | tests/mime-detection/so5.sdp | bin | 0 -> 6781 bytes |
3 files changed, 10 insertions, 3 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index cb8f402..05d52a3 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -997,7 +997,6 @@ command to generate the output files. </match> </magic> <glob pattern="*.sdd" weight="40"/> - <glob pattern="*.sdp" weight="40"/> </mime-type> <mime-type type="application/x-starmail"> <comment>StarMail 4 email</comment> @@ -1086,7 +1085,14 @@ command to generate the output files. </match> </magic> <glob pattern="*.sdd"/> - <glob pattern="*.sdp"/> + </mime-type> + <mime-type type="application/vnd.stardivision.impress-packed"> + <comment>StarImpress packed presentation</comment> + <generic-icon name="x-office-presentation"/> + <magic> + <match type="string" value="PIZS" offset="0"/> + </magic> + <glob pattern="*.sdp" weight="10"/> </mime-type> <mime-type type="application/vnd.stardivision.mail"> <comment>StarMail 5 email</comment> diff --git a/tests/mime-detection/list b/tests/mime-detection/list index a3eae64..70e4509 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -182,6 +182,7 @@ so5.sdw application/vnd.stardivision.writer so5.sgl application/vnd.stardivision.writer-global so5.sdc application/vnd.stardivision.calc so5.sdd application/vnd.stardivision.impress +so5.sdp application/vnd.stardivision.impress-packed x so5.sda application/vnd.stardivision.draw so5.sds application/vnd.stardivision.chart so5.smf application/vnd.stardivision.math @@ -254,7 +255,7 @@ test.xps application/vnd.ms-xpsdocument ox # Playlist, subtitle and audio formats stream.nsc application/x-netshow-channel -stream.sdp application/sdp x +stream.sdp application/sdp playlist.asx audio/x-ms-asx feed.rss application/rss+xml feed2 application/rss+xml x diff --git a/tests/mime-detection/so5.sdp b/tests/mime-detection/so5.sdp Binary files differnew file mode 100644 index 0000000..a51fdd8 --- /dev/null +++ b/tests/mime-detection/so5.sdp |