Re: Bug#306917: shared-mime-info: new version cause wrong icon and menu on zip file in nautilus
tags 306917 + patch
thanks
On Fri, 2005-04-29 at 13:27 +0100, Stewart Jeacocke wrote:
> On Fri, 2005-04-29 at 23:43 +1200, Carlos Liu wrote:
> > Package: shared-mime-info
> > Version: 0.16-1debian1
> > Severity: normal
> >
> > I upgraded shared-mime-info to 0.16-1debian1 yesterday. After that, if
> > I do a single click on a zip file in nautilus window, the icon of that
> > file will become OpenOffice.Org
Applying this patch to /usr/share/mime/packages/freedesktop.org.xml
should do the trick. Then run dpkg-reconfigure shared-mime-info
Stewart
--- freedesktop.org.xml.orig 2005-04-29 13:44:04.185713256 +0100
+++ freedesktop.org.xml 2005-04-29 13:41:36.000000000 +0100
@@ -1098,6 +1098,7 @@
<glob pattern="*.sgl"/>
</mime-type>
<mime-type type="application/vnd.sun.xml.calc">
+ <sub-class-of type="application/zip"/>
<comment>OpenOffice.org Calc spreadsheet</comment>
<comment xml:lang="bg">ТаблиÑ?а, Ñ?оÑ?маÑ? OpenOffice.org Calc</comment>
<comment xml:lang="cs">Tabulka OpenOffice.org Calc</comment>
@@ -1127,7 +1128,7 @@
<comment xml:lang="zh_CN">OpenOffice.org Calc 工�簿</comment>
<glob pattern="*.sxc"/>
<magic priority="50">
- <match value="\x50\x4B\x03\x04\x14\x00" type="string" offset="0"/>
+ <match value="mimetypeapplication/vnd.sun.xml.calc" type="string" offset="30"/>
</magic>
</mime-type>
<mime-type type="application/vnd.sun.xml.calc.template">
@@ -12535,4 +12536,4 @@
<comment>Linear and integer program expression format</comment>
<glob pattern="*.mps"/>
</mime-type>
-</mime-info>
\ No newline at end of file
+</mime-info>
Reply to: