Firefox does not set itself as default browser correctly on Gnome/Linux
Categories
(Firefox :: Shell Integration, defect, P3)
Tracking
()
People
(Reporter: mozilla, Assigned: mpohle)
References
()
Details
Attachments
(2 files)
Comment 1•11 years ago
|
||
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•2 years ago
|
Comment 4•8 months ago
|
||
I am still able to reproduce this issue on Firefox 115.12.0-esr, using Ubuntu 22.04, as mentioned in Comment 3.
Comment 5•8 months ago
|
||
Desktop QA has been highlighting this defect as a known issue for several release cycles now, following regression testing. Max, it would really help us if you set a priority on this bug — it will give us clarity on whether this issue is still worth mentioning in future test reports.
Assignee | ||
Updated•8 months ago
|
Assignee | ||
Updated•8 months ago
|
Assignee | ||
Comment 6•7 months ago
|
||
Assignee | ||
Comment 7•7 months ago
|
||
Hi! I was unable to reproduce this bug. I tried the (snap build, which comes pre-installed on 20.04) with its desktop file under /var/lib/snapd/desktop/applications/firefox_firefox.desktop
and also the .deb-package provided by us (as described here), which created a desktop file for me under ~/.local/share/applications/
. Both use %u
(without quotes) and do not show the home folder when I use my custom shortcut (see screenshot).
If this is indeed still an issue for you, I need more info:
- Which version did you try?
- Have you used another approach to configure the shortcut?
- Can you record a short video clip of this problem happening?
Comment 8•7 months ago
|
||
Hi Max,
Indeed, the issue no longer reproduces when installing the Firefox builds on Ubuntu 22.04 as advised via the link you provided (snap, deb, and tar.bz2 builds).
However, I have noticed that the reason why I was unable to set the Firefox browser as the default one is because I manually extracted the tar.bz2 file into a folder with a name containing spaces (e.g., 'new folder').
This can be reproduced with Firefox 128.0-build1 RC or latest Firefox Nightly 129.0a1 (2024-07-03). Upon clicking the "Make default..." button from about:preferences, the browser is not saved as default and and the error mentioned in Comment 3 is displayed in the browser console.
I am attaching a video as well.
Could you please let me know if this is expected? Thank you in advance!
Assignee | ||
Comment 9•7 months ago
|
||
Hey bhidecuti! Good catch! I am going to discuss with the team if we want to have a dedicated bug for that or if we can simply fix it within this Bug. I will come back to this after having done that and will leave the needinfo on me until then.
Assignee | ||
Comment 10•5 months ago
|
||
This bug was about the quotes as in /path/to/firefox "%s"
, which is the same fix as suggested in Bug 382174. Now that this issue is no more we can address the issue with the path name if it contains spaces somewhere else and mark these two bugs as fixed.
I will create such a bug and close these as resolved. I am going to link the newly created bug here afterwards.
Assignee | ||
Comment 11•5 months ago
|
||
The problem with path names with spaces in it can be further discussed in Bug 1917286. Thanks Bianca Hidecuti for pointing it out!
Description
•