Bug 158302 - Embedded browser not available
Embedded browser not available
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: eclipse (Show other bugs)
rawhide
All Linux
medium Severity low
: ---
: ---
Assigned To: eclipse-bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-20 10:08 EDT by Robin Green
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-05-25 09:10:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Robin Green 2005-05-20 10:08:03 EDT
Description of problem:
MOZILLA_FIVE_HOME is not set, so the embedded browser widget fails to start

Version-Release number of selected component (if applicable):
eclipse-platform-3.1.0_fc-0.M6.18

How reproducible:
Always

Steps to Reproduce:
1. In eclipse, create a file called "test.html"
  
Actual results:
Eclipse says: "Embedded browser not available" and offers to "open file using
the system editor". The detailed error message is:

org.eclipse.swt.SWTError: No more handles [Unknown mozilla path
(MOZILLA_FIVE_HOME not set)]

Expected results:
Should use mozilla or firefox for the embedded browser widget

Additional info:
I am currently running eclipse on Sun JDK 1.5, but I don't think that should
make a difference, because MOZILLA_FIVE_HOME would not be set whichever VM you use.

Suggested fix: Add the following to /usr/bin/eclipse:

if [ -z "$MOZILLA_FIVE_HOME" ]; then
  XPCOM=$(ls -t /usr/lib/{mozilla,firefox}-*/libxpcom.so|head -n1)
  export MOZILLA_FIVE_HOME=$(dirname $XPCOM)
fi
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME
Comment 1 Andrew Overholt 2005-05-20 11:06:42 EDT
I've been meaning to fix this - thanks for doing it!  I'll include it in our
next build.
Comment 2 Ben Konrath 2005-05-25 01:15:21 EDT
This has been fixed in the M7 packages. Can you test to make sure this works for
you and close this bug if it does? Thanks for the patch.
Comment 3 Robin Green 2005-05-25 09:10:28 EDT
Yeah, it works for me with the eclipse 3.1M7 rpms.

Note You need to log in before you can comment on or make changes to this bug.