Description of problem: install Sun Java SE 6.0 rpm nautilus will see .ods as application/x-java-archive Opening it: The filename "file.ods" indicates that this file is of type "ODS spreadsheet". The contents of the file indicate that the file is of type "Java Archive". If you open this file, the file might present a security risk to your system. Do not open the file unless you created the file yourself, or received the file from a trusted source. To open the file, rename the file to the correct extension for "Java Archive", then open the file normally. Alternatively, use the Open With menu to choose a specific application for the file. Only available option: cancel The general issue is upstream unsolved since 2004-03-25 http://bugzilla.gnome.org/show_bug.cgi?id=138033
Where could I get a .ods file to test with?
Created attachment 148476 [details] open document spreadsheet
Start OpenOffice Spreadsheet, type something, save. I've attached one for your convenience :)
(In reply to comment #0) > Description of problem: > install Sun Java SE 6.0 rpm I missed that bit. Does this package include some xml files in /usr/share/mime/packages/ ? If so, then it's probably breaking the association used in shared-mime-info. > nautilus will see .ods as application/x-java-archive
Yes it does: /usr/java/jdk1.6.0/jre/lib/desktop/mime/packages/x-java-archive.xml <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-type type="application/x-java-archive"> ... <glob pattern="*.jar"/> <magic priority="85"> <match type="string" value="PK\003\004" offset="0"> match type="host16" value="0xcafe" offset="40" /> </match> </magic> </mime-type> </mime-info> However, the point remains that with Java installed, documents cannot be opened anymore. The Nautilus dialog should be the above warning + buttons: [Open with OpenOffice] [Open with java] [Do not open] Thanks
And I believe the problem lies with the mime-info provided by the Java SDK. See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6510610