Open
Bug 420408
Opened 17 years ago
Updated 2 years ago
Firefox does not set itself as default browser correctly on Gnome/Linux
Categories
(Firefox :: Shell Integration, defect)
Tracking
()
NEW
People
(Reporter: mozilla, Unassigned)
References
()
Details
(Spotted on Ubuntu Hardy (8.04 development branch) using the latest trunk nightly from Mozilla.)
When Firefox sets itself as the default browser on Gnome, the command it uses to invoke itself is:
/path/to/firefox "%s"
Then, when Firefox is invoked from the keyboard shortcut (set in Gnome's System → Preferences → Keyboard Shortcuts), Firefox loads the user's home folder as a directory listing (i.e. it loads file:///home/example/ ).
Instead, Firefox should open a new window, as if it had been invoked from the Applications menu or a launcher. This can be achieved by changing the command used to invoke Firefox from the above to:
/path/to/firefox %s
i.e. by removing the quotation marks (users can do this in System → Preferences → Preferred Applications → Internet).
The in-built version of Firefox in Ubuntu invokes itself using:
firefox %s
so removing the quotes shouldn't have any unforeseen repercussions.
So: Firefox should register itself as the default browser using:
/path/to/firefox %s
instead of
/path/to/firefox "%s"
(I suppose other distros will also set this command themselves for the Firefoxen they distribute, which is why I've set this bug's severity to minor. I also reported this to Launchpad; detailed steps to reproduce are at https://bugs.launchpad.net/bugs/196493 )
See Also: → https://launchpad.net/bugs/196493
Comment 1•11 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.
olsolete and resolved
if set as default from preferences, firefox (from mozilla) creates ~/.local/share/applications/userapp-Firefox-RANDOM.desktop with Exec=/path/to/firefox %u
Comment 3•5 years ago
|
||
Hello,
This issue still occurs in 76.0b8 with Ubuntu 18.04 . Upon clicking the "Make default..." button , the browser is not saved as default and the following error is triggered inside the browser console:
[Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIShellService.setDefaultBrowser]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: chrome://browser/content/preferences/in-content/main.js :: setDefaultBrowser :: line 1305" data: no] main.js:1305:18 setDefaultBrowser chrome://browser/content/preferences/in-content/main.js:1305 setDefaultBrowser self-hosted:844
Updated•4 years ago
|
Updated•2 years ago
|
Severity: minor → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•