This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 61380

Summary: Mozilla selected as default browser even when not installed
Product: ide Reporter: Jesse Glick <jglick>
Component: ExtbrowserAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: blocker CC: rkubacki
Priority: P3 Keywords: SIMPLEFIX
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2005-07-25 21:22:28 UTC
My GNOME system (FC3) has Firefox installed but not Mozilla. Yet extbrowser on a
fresh user dir always selects Mozilla as the default browser, so trying to open
a URL fails. Should either

1. Check what browser executable is actually available and use it; Firefox is
always preferable to Mozilla if both are available.

2. [Preferred] Use /usr/bin/gnome-open if available, which seems to work
correctly on various URLs.
Comment 1 Martin Grebac 2005-10-19 09:06:17 UTC
1 - Is there a way to check if the browser executable exists? We currently
expect there's a firefox or mozilla command on your path, we don't set direct
path to executable. 
2 - Does gnome-open work also when KDE (or other winmgr) is used?
Comment 2 Jesse Glick 2005-10-20 22:16:07 UTC
Could maybe just check for /usr/bin/mozilla vs. /usr/bin/firefox; those are the
standard locations.

I don't know anything about KDE but I would assume gnome-open would not work
when running KDE. Probably some way to check for a running Gnome session, e.g.
whether GNOME_DESKTOP_SESSION_ID is defined.
Comment 3 _ rkubacki 2005-11-29 08:22:29 UTC
I agree that Firefox should be preffered if available.

2. is really preffered if we run the IDE in GNOME session (should be common for
Solaris and Linux)
Comment 4 Jesse Glick 2006-04-20 17:31:35 UTC
Firefox > Mozilla good enough for 1.5; for 1.6 see issue #67323.
Comment 5 Jesse Glick 2006-04-20 20:57:51 UTC
committed     Up-To-Date  1.23       
extbrowser/src/org/netbeans/modules/extbrowser/resources/layer.xml