Fedora Linux Support Community & Resources Center
  #1  
Old 12th August 2007, 02:11 AM
nicstevens42 Offline
Registered User
 
Join Date: Feb 2006
Location: Seattle
Age: 48
Posts: 192
Thumbs down F7, Open Office, Java and Nautilus

Hi,

After installing F7 Nautilus warns me whenever I double click on .odt .ods files telling me it's unsafe to open java apps:
Code:
The filename "Foo.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.
WTF? This is a normal OpenOffice document, created with the OpenOffice installed with F7.

BTW this happens with zip files.

I have used Properties->Open With to set "Spreadsheet" as the application to open the document with but this doesn't stop the error (it calls it a warning but never opens the document)

I can use right-click->Open With but why?? This certainly makes desktop linux less desireable to noobs.

Is there a way to change the way gnome/nautilus sees these files??
__________________
Lenovo 30000 Intel Dual Core E2220 2.4GHz 3G Ram Intel 82G33 Integrated Chipset and Video. 1.5TB WD SATA HD Fedora 17 x86_64 Registered Linux User 414322
Reply With Quote
  #2  
Old 12th August 2007, 02:13 AM
nicstevens42 Offline
Registered User
 
Join Date: Feb 2006
Location: Seattle
Age: 48
Posts: 192
More detail: The first two letters of the document are PK which is the first two letters of a zip file but if I run "file Foo.ods" I get "OpenDocument Spreadsheet"
__________________
Lenovo 30000 Intel Dual Core E2220 2.4GHz 3G Ram Intel 82G33 Integrated Chipset and Video. 1.5TB WD SATA HD Fedora 17 x86_64 Registered Linux User 414322
Reply With Quote
  #3  
Old 12th August 2007, 02:25 PM
evans Offline
Registered User
 
Join Date: Oct 2005
Location: CA, USA
Posts: 126
Quote:
Originally Posted by nicstevens42
Hi,

BTW this happens with zip files.
What do you mean by this, exactly? You are clicking a zip file that contains an open office spread sheet? My F7 nautilus does not reproduce your error (ie it happily opens ods files when I click them).

Did you install JRE from Sun, or are you using the F7 JRE? You can check what java your system is calling with (as root)

Code:
java -version
__________________
FC4, then FC5, skipped FC6 and now FC7
HP pavilion zd8000 (zd8230us)
P4
1G RAM
http://www.humboldt.edu/~te8/misc/hpzd8230us_fc5.html
Reply With Quote
  #4  
Old 12th August 2007, 05:29 PM
nicstevens42 Offline
Registered User
 
Join Date: Feb 2006
Location: Seattle
Age: 48
Posts: 192
I'm double clicking on a .ods or .odt file -- which are actually zip files.

Code:
Archive:  /home/nic/Desktop/Foo.ods
 Length   Method    Size  Ratio   Date   Time   CRC-32    Name
--------  ------  ------- -----   ----   ----   ------    ----
      46  Stored       46   0%  08-12-07 15:45  8a396c85  mimetype
       0  Stored        0   0%  08-12-07 15:45  00000000  Configurations2/statusbar/
       0  Defl:N        2   0%  08-12-07 15:45  00000000  Configurations2/accelerator/current.xml
       0  Stored        0   0%  08-12-07 15:45  00000000  Configurations2/floater/
       0  Stored        0   0%  08-12-07 15:45  00000000  Configurations2/popupmenu/
       0  Stored        0   0%  08-12-07 15:45  00000000  Configurations2/progressbar/
       0  Stored        0   0%  08-12-07 15:45  00000000  Configurations2/menubar/
       0  Stored        0   0%  08-12-07 15:45  00000000  Configurations2/toolbar/
       0  Stored        0   0%  08-12-07 15:45  00000000  Configurations2/images/Bitmaps/
    5738  Defl:N     1094  81%  08-12-07 15:45  887135cd  content.xml
    6235  Defl:N     1396  78%  08-12-07 15:45  7d19f2f1  styles.xml
    1031  Defl:N      430  58%  08-12-07 15:45  03245434  meta.xml
    1253  Defl:N      729  42%  08-12-07 15:45  593d491e  Thumbnails/thumbnail.png
    7295  Defl:N     1142  84%  08-12-07 15:45  376b58ef  settings.xml
    1873  Defl:N      322  83%  08-12-07 15:45  664d06cc  META-INF/manifest.xml
--------          -------  ---                            -------
   23471             5161  78%                            15 files
Java is Sun Java
Code:
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
Quote:
Originally Posted by evans
What do you mean by this, exactly? You are clicking a zip file that contains an open office spread sheet? My F7 nautilus does not reproduce your error (ie it happily opens ods files when I click them).

Did you install JRE from Sun, or are you using the F7 JRE? You can check what java your system is calling with (as root)

Code:
java -version
__________________
Lenovo 30000 Intel Dual Core E2220 2.4GHz 3G Ram Intel 82G33 Integrated Chipset and Video. 1.5TB WD SATA HD Fedora 17 x86_64 Registered Linux User 414322
Reply With Quote
  #5  
Old 12th August 2007, 05:43 PM
bryancole Offline
Registered User
 
Join Date: Jul 2004
Posts: 414
I'm guessing you've installed the rpm-version of Sun java. This has probably installed some new mime-type handlers on your system. This is problematic, not least because this rpm install can conflict with files from the gcj-java pacakge which comes with Fedora.

As you've discovered, ODF-files are simply zip-files with xml and other content. In fact, Java .jar files are also zip-files (but containing java byte-code).

I'd recommend removing the rpm-version of java and installing the tar.gz package into a local directory e.g. /opt/java/ (this is what I use anayway). Where-ever I have a java app I want to use with the Sun JRE (as opposed to gcj), I add a line to it's start-script adding /opt/java/jre-1.6.X.X/bin to the PATH, so the system finds the Sun java binaries. You can set the location of your chosen JRE in OpenOffice directly (in the Tools->Options->Java dialog).
Reply With Quote
  #6  
Old 12th August 2007, 06:04 PM
nicstevens42 Offline
Registered User
 
Join Date: Feb 2006
Location: Seattle
Age: 48
Posts: 192
YAY!

Thanks Bryan! Uninstalling java and installing the self-extracting .bin did the trick!
__________________
Lenovo 30000 Intel Dual Core E2220 2.4GHz 3G Ram Intel 82G33 Integrated Chipset and Video. 1.5TB WD SATA HD Fedora 17 x86_64 Registered Linux User 414322
Reply With Quote
Reply

Tags
java, nautilus, office, open

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nautilus scripts, mostly bash, as root open nautilus in current folder. leadgolem Programming & Packaging 18 28th January 2008 08:21 AM
nautilus-open-terminal making nautilus crash XMAG Using Fedora 5 3rd December 2007 09:05 PM
Installing Oxygen Office Professional (aka Open Office Premium) elijah_lao8 Using Fedora 2 11th December 2006 10:22 AM
Unable to use Open office in MS Office jimmy2975 Using Fedora 5 20th April 2006 11:28 PM
Un-installing the distro Open Office before I install the latest Open Office Peter D Using Fedora 4 7th March 2006 06:17 PM


Current GMT-time: 23:09 (Friday, 24-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Artem Photos - Rio Verde Travel Photos on Instagram - Nuth Travel Photos