I have a recently (last Friday) updated CentOS 4.5 desktop running OOo 2.2 that, since this morning, displays OpenOffice .odt files as application:x-java-archives and has replaced the open office icon on my desktop with the java icon for these files. I have looked in both: /usr/share/mime-info/gnome-vfs.mime and /usr/share/mime-info/file-roller.mime And cannot see any reference to OpenOffice v2 document types at all, or any relation between x-java-archives and odt extensions. What I find instead is this in /usr/share/mime-info/gnome-vfs.mime: ---> # OpenOffice 6.x document types application/vnd.sun.xml.calc ext: sxc application/vnd.sun.xml.calc.template ext: stc application/vnd.sun.xml.draw ext: sxd application/vnd.sun.xml.draw.template ext: std application/vnd.sun.xml.impress ext: sxi application/vnd.sun.xml.impress.template ext: sti application/vnd.sun.xml.math ext: sxm application/vnd.sun.xml.writer ext: sxw application/vnd.sun.xml.writer.global ext: sxg application/vnd.sun.xml.writer.template ext: stw ... application/x-java-archive ext: jar ear war <--- The 6.0 makes no sense to me at all, but as it is only a comment it does not harm I guess. My questions are: Where are the odt and similar OpenOffice v2 mime-types cataloged and why are they now associated with Java Archives? I had OOo2 documents presented by OOo icons earlier today, the change only appeared to happen when I moved some OOo documents off of my desktop and into another folder. Thanks, -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
On Mon, June 4, 2007 11:23, James B. Byrne wrote:> I have a recently (last Friday) updated CentOS 4.5 desktop running OOo 2.2 > that, since this morning, displays OpenOffice .odt files as > application:x-java-archives and has replaced the open office icon on my > desktop with the java icon for these files.This problem is caused by neither CentOS nor OpenOffice but by the recent Java 6 update which has a typo in /usr/share/mime/packages/x-java-archive.xml. To fix this add the missing leading "<" before: - match type="host16" value="0xcafe" offset="40"/> + <match type="host16" value="0xcafe" offset="40"/> on or about line 35, save and then update the mime database with: # update-mime-database /usr/share/mime Regards, -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3