Bug 425287 - Firefox always asks to be default browser
Summary: Firefox always asks to be default browser
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 5.19.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://bugzilla.mozilla.org/show_bug...
Keywords:
: 436293 442045 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-08-13 10:44 UTC by medin
Modified: 2022-01-15 20:35 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Firefox always asks to be default browser (87.10 KB, image/png)
2020-08-13 10:44 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2020-08-13 10:44:23 UTC
Created attachment 130843 [details]
Firefox always asks to be default browser

When Firefox starts, it always shows a dialog for settings it as default browser, even if I click on "Use Firefox as my default browser" and restart the browser the dialog appears again, and even after setting Firefox as default browser in Plasma Settings then restarting the browser it gives the same dialog.
It's like Firefox cannot read the settings of default apps set inside Plasma settings, or Plasma settings fails to set it properly.

Firefox; 79.0 (64-bit)
Operating System: Manjaro Linux
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0
Kernel Version: 5.7.9-1-MANJARO
OS Type: 64-bit
Comment 1 Patrick Silva 2020-08-14 14:34:52 UTC
Are you using GTK_USE_PORTAL=1?

https://bugzilla.mozilla.org/show_bug.cgi?id=1516290
Comment 2 medin 2020-08-14 19:01:09 UTC
(In reply to Patrick Silva from comment #1)
> Are you using GTK_USE_PORTAL=1?
> 
> https://bugzilla.mozilla.org/show_bug.cgi?id=1516290

I don't launch Firefox with this variable environment, but after verifying on terminal it's already set somewhere else to 1.
Comment 3 Nate Graham 2020-08-18 18:27:50 UTC
yeah, it's a bug in Firefox.
Comment 4 Patrick Silva 2021-05-31 02:23:56 UTC
*** Bug 436293 has been marked as a duplicate of this bug. ***
Comment 5 David Edmundson 2021-05-31 07:36:32 UTC
Afaik it's a bug in xdg-utils.

We saw and fixed something similar, but it's still pending fd.o release
Comment 6 Patrick Silva 2021-05-31 17:55:56 UTC
(In reply to David Edmundson from comment #5)
> Afaik it's a bug in xdg-utils.
> 
> We saw and fixed something similar, but it's still pending fd.o release

are you talking about this commit?
https://gitlab.freedesktop.org/xdg/xdg-utils/-/commit/d11b33ec7f24cfb1546f6b459611d440013bdc72

I'm using
https://aur.archlinux.org/packages/xdg-utils-git
and Firefox 88.0.1 on Arch Linux and the bug reported here persists despite I do not use  GTK_USE_PORTAL=1 on my system.

Operating System: Arch Linux
KDE Plasma Version: 5.21.90
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Graphics Platform: X11
Comment 7 Nate Graham 2021-06-01 16:18:14 UTC
I guess that makes sense since the Firefox bug report is still open: https://bugzilla.mozilla.org/show_bug.cgi?id=1516290

I guess it's on them to fix.
Comment 8 Daniele Venzano 2021-06-03 07:13:55 UTC
While waiting for a fix, the simplest workaround to stop having the dialog pop up each time firefox starts, is to rename or delete /usr/sbin/firefox (that comes from neon-settings-2, so is probably neon-specific).

The environment variable is set in that script.
Comment 9 Nate Graham 2021-09-08 20:13:11 UTC
*** Bug 442045 has been marked as a duplicate of this bug. ***
Comment 10 Daniele Venzano 2022-01-15 16:54:21 UTC
This bug is back after latest update to firefox 96.
Each time I open firefox I get the default browser prompt, even when selecting the checkbox "set as default".
Comment 11 Nate Graham 2022-01-15 20:35:33 UTC
That's because it's not fixed in Firefox yet.