Nautilus Identifying OpenOffice Documents as Java Archives

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="*.jar"/>
     <magic priority="85">
       <match type="string" value="PK\003\004" offset="0">
-       match type="host16" value="0xcafe" offset="40" />
+       <match type="host16" value="0xcafe" offset="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.

Update 12 Jan 2007: This has been filed as ticket 6510610 in Sun's Bug Database.

Update 7 Jul 2007: The bug has been fixed in Java 6 Update 2.

12:25, 25 Dec 2006 by Carsten Clasohm Permalink | Comments (6)

Linux and the iriver T10 [mostly-linux.blogspot.com]

A while back I bought an iriver T10 music player. For the next months, I had to use gPhoto to upload audio files from Linux to the T10. Only because someone decided to use Microsoft's Media Transfer Protocol (MTP), instead of the good old USB Mass Storage protocol (UMS).

My gPhoto setup broke when I upgraded to Fedora Core 6, so I searched around, and found that iriver had released new firmware to replace MTP with UMS. The firmware updater requires Windows to run, but after using it, I finally can access the T10 like any other USB storage device under Linux.

17:44, 12 Dec 2006 by Carsten Clasohm Permalink | Comments (0)

RSS

Archive

December 2006
S M T W T F S
         
10  11  12  13  14  15  16 
17  18  19  20  21  22  23 
24  25  26  27  28  29  30 
31             
September 2008
July 2008
June 2007
May 2007
March 2007
January 2007
December 2006
September 2006
June 2006
April 2006
March 2006
February 2006
January 2006
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
January 2005
December 2004
November 2004
October 2004

Blog Categories

Hiking (5)
Desktop Linux (28)
Server Linux (5)
Palm (3)
Photography (5)
Politics (2)
Web Applications (15)

Notifications

Request notifications

Syndication Feed

RSS

Recent Comments

  1. Anonymous Visitor: AT&T U.S.
  2. Anonymous Visitor: All went well under CentOS 5.0 in Croatia (VIP network)
  3. Anonymous Visitor: tmp crypt not necessary
  4. Anonymous Visitor: Great article
  5. Anonymous Visitor: So it's not a Virus...
  6. Anonymous Visitor: Thanks! Helps also on Windows!
  7. Anonymous Visitor: Thank you
  8. Anonymous Visitor: Economic Incentives
  9. Anonymous Visitor: thank you
  10. B G: Why are multiple device files created for one Treo 650 device on F7?