Summary: | OpenOffice.org Calc spreadsheet magic | ||
---|---|---|---|
Product: | shared-mime-info | Reporter: | J.H.M. Dassen (Ray) <jdassen> |
Component: | freedesktop.org.xml | Assignee: | Jonathan Blandford <jrb> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | high | CC: | bugzilla |
Version: | unspecified | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
J.H.M. Dassen (Ray)
2005-04-27 12:07:30 UTC
Th above patch is far too general. It will match any zip files (all OOo files are zipped). Below is a far more specific bit of magic that will only match OOo calc files diff -ru shared-mime-info-0.16.old/freedesktop.org.xml.in shared-mime-info-0.16/freedesktop.org.xml.in --- shared-mime-info-0.16.old/freedesktop.org.xml.in 2005-04-30 15:55:07.000000000 +0200 +++ shared-mime-info-0.16/freedesktop.org.xml.in 2005-04-30 15:55:08.000000000 +0200 @@ -285,9 +285,13 @@ <glob pattern="*.vor"/> <glob pattern="*.sgl"/> </mime-type> - <mime-type type="application/vnd.sun.xml.calc"> + <mime-type type="application/vnd.sun.xml.calc"><!-- Not officially registered with IANA --> + <sub-class-of type="application/zip"/> <_comment>OpenOffice.org Calc spreadsheet</_comment> <glob pattern="*.sxc"/> + <magic priority="50"> + <match value="mimetypeapplication/vnd.sun.xml.calc" type="string" offset="30"/> + </magic> </mime-type> <mime-type type="application/vnd.sun.xml.calc.template"> <_comment>OpenOffice.org Calc spreadsheet template</_comment> |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.