If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Firefox doesn't recognize it's the default browser in GNOME and set web browser to Custom




Shell Integration
9 years ago
4 years ago


(Reporter: Jan Horak, Unassigned)


Firefox Tracking Flags

(Not tracked)



(1 attachment)



9 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2a1pre) Gecko/20081214 Minefield/3.2a1pre
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2a1pre) Gecko/20081214 Minefield/3.2a1pre

"Check now" function in Edit/Preferences/Advanced/Default browser fails to recognize that Gnome has Firefox set as default browser.

Reproducible: Always

Steps to Reproduce:
1. Open "Preferred applications" (command gnome-default-applications-properties)
2. Set web browser to "Firefox"
3. Start Firefox and go to Edit/Preferences/Advanced tab. 
4. Click on "Check now" button
5. Click on "Yes" button
Actual Results:  
Firefox wrongly detect that it is not a default browser for Gnome and it set
the default browser in Gnome Preferred Applications to Custom with command "/usr/lib/firefox-3.0.4/firefox "%s"".

Expected Results:  
The Firefox should detect that it is already the default browser. However if it is not default browser the preferred application should be set to "firefox "%s"" instead of full path.

In my experience this bug occurs in RHEL5 and Fedora 10.

Comment 1

9 years ago
Created attachment 353048 [details] [diff] [review]
Proposed patch

Firefox is using location of binary file (/usr/lib/firefox-3.0.5/firefox for
example) to compare with string in gconf protocol handlers (like
/desktop/gnome/url-handler/http). However in gconf register is not stored full
path. Only 'firefox %s'. The patch is only searching for 'firefox' word in gconf
register to check if Firefox is default browser. If it is confirmed to use Firefox as default browser the Gnome preferred application web browser is set to "firefox %s". This assure that next time Gnome preferred application is executed it shows Firefox browser as selected from drop down menu (no Custom).


9 years ago
Ever confirmed: true


8 years ago
Duplicate of this bug: 536937

Comment 3

4 years ago
I am interested to work on this bug and I would I like to know more details about this bug. I would also like to know where I should get started.
You need to log in before you can comment on or make changes to this bug.