[Eug-lug] FIXED! Fedora 6 - Open Office test file weirdness
Harald Sundt
h_sundt at efn.org
Thu Jul 5 14:55:30 PDT 2007
This *is* the problem and the solution!
http://www.clasohm.com/blog/one-entry?entry_id=3D40367
After installing the Java 6 RPM on Fedora Core (jdk-1.6.0-fcs), Nautilus =
prints the following error when you try to open an OpenOffice document:
The filename "Report.sxw" indicates that this file is of type =
"OpenOffice Writer". 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.
This is because the file /usr/share/mime/packages/x-java-archive.xml =
that is created by the Java RPM is broken.
To fix it, add a "<" in front of the second "match" tag:
--- x-java-archive.xml.orig 2006-12-24 14:47:05.000000000 +0100
+++ x-java-archive.xml 2006-12-25 11:57:03.000000000 +0100
@@ -32,7 +32,7 @@
<glob pattern=3D"*.jar"/>
<magic priority=3D"85">
<match type=3D"string" value=3D"PK\003\004" offset=3D"0">
- match type=3D"host16" value=3D"0xcafe" offset=3D"40" />
+ <match type=3D"host16" value=3D"0xcafe" offset=3D"40" />
</match>
</magic>
</mime-type>
Then run the following command:
update-mime-database /usr/share/mime
Log out and log in again to restart Nautilus. I didn't even have to =
reboot for all to be well.
> Thanks for the amazing solution from out of the blue!
> =
Hal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://euglug.org/pipermail/euglug/attachments/20070705/ef3cf1b2/attac=
hment.htm
More information about the EUGLUG
mailing list