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 - Mozilla selected as default browser even when not installed
Summary: Mozilla selected as default browser even when not installed
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Extbrowser (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2005-07-25 21:22 UTC by Jesse Glick
Modified: 2006-11-15 00:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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