[Wayland] Links in external applications don't open in the existing browser
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox65 | --- | affected |
People
(Reporter: mythmon, Unassigned)
References
(Blocks 1 open bug)
Details
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
GDK_BACKEND is no longer needed, use MOZ_ENABLE_WAYLAND instead (Bug 1522780).
Updated•6 years ago
|
Reporter | ||
Comment 8•6 years ago
|
||
I don't think the change of environment variables has affected the problem here. External apps still use the default launcher, even when existing Firefox is running in Wayland, and setting the default to Wayland via xdg-settings
still causes Firefox to prompt to reset the default to non-Wayland (as described in comment 5).
Comment 9•6 years ago
|
||
(In reply to Michael Cooper [:mythmon] from comment #8)
I don't think the change of environment variables has affected the problem
here. External apps still use the default launcher, even when existing
Firefox is running in Wayland, and setting the default to Wayland via
xdg-settings
still causes Firefox to prompt to reset the default to
non-Wayland (as described in comment 5).
Yes, xdg-settings is not read by Firefox, it's Bug 1526243. Firefox uses Gtk2 routines to set/detect default browser which is incorrect as we're running on Gtk3 now.
Comment 10•6 years ago
|
||
This sounds like an issue I'm seeing. I'm using Gnome Shell / Wayland with the Dash to panel extension to get a "taskbar".
When running Nightly with MOZ_ENABLE_WAYLAND=1
, the shell detects it as a different app, so it shows the Xwayland Nightly as not running, and the Wayland window is missing its icon.
In addition, I can't pin it to the taskbar, and the Xwayland Nightly can't activate the Wayland one. So it's behaving as if --no-remote
was passed.
The same thing happens when I update Firefox while it's running (but I don't consider that to be an issue).
Note that my Wayland Nightly believes it's the default browser.
Comment 11•6 years ago
|
||
I tried changing my .desktop file (the one used for opening links, I think) to Exec=env MOZ_ENABLE_WAYLAND=1 /opt/firefox-nightly/firefox-bin %u
, but on startup Firefox believes it's not the default browser and creates a new one without the environment variable.
And there seems to be no (easy) way to pin the app. I still think this should block bug 1543600.
Comment 12•6 years ago
|
||
Update: after setting MOZ_ENABLE_WAYLAND=1
globally (e.g. in ~/.pam_environment
), opening links works, so when Wayland gets enabled by default, this issue should no longer occur.
My other problem (the shell not recognizing Firefox as an application) is still blocking IMO, but it's tracked in bug 1530052.
Comment 13•6 years ago
|
||
after setting MOZ_ENABLE_WAYLAND=1 globally (e.g. in ~/.pam_environment), opening links works
Thank you for this tip - it closes one of the more annoying things about using Firefox on Wayland.
Comment 14•5 years ago
|
||
after setting MOZ_ENABLE_WAYLAND=1 globally (e.g. in ~/.pam_environment), opening links works
Thanks after setting this and restarting Firefox it's all working as it should, it also updated the default browser settings and a restart confirms it's been persisted
Comment 16•5 years ago
|
||
You can use MOZ_DBUS_REMOTE to force Firefox to use only DBus as a remote protocol, see:
https://mastransky.wordpress.com/2020/03/16/wayland-x11-how-to-run-firefox-in-mixed-environment/
Comment 17•4 years ago
|
||
I recently switched from Nightly to Stable on my Arch Linux + Gnome on Wayland desktop.
I have both MOZ_DBUS_REMOTE
and MOZ_ENABLE_WAYLAND
enabled in my .pam_environment
, both correctly shows up as enabled in about:support
in the Environment listing, yet this fails to work still and I get a "Firefox is already running..." message whenever I try to launch any link from the OS. Even if I start Firefox by clicking a link from another app, if I click the same link again in the same app I get the same result. I'm using the package version of latest stable Firefox (81.0.1
).
The weirdest thing about this is not only did this work on Nightly, but if I launch Nightly now, let it set itself as default browser, this works perfectly well in Nightly - all links from the OS correctly open in the browser. So the issue seems to be in stable, somehow, but I'm running out of ideas how to troubleshoot this so any help would be greatly appreciated.
PS: I have two profiles, a nightly and a stable one, stable is set as a default profile and Stable Firefox correctly launches with that profile set, while Nightly uses the nightly profile.
Comment 18•4 years ago
|
||
Not sure if it's quite the same bug, but I've noticed when running with MOZ_ENABLE_WAYLAND
added to the /usr/bin/firefox
script in ubuntu that clicking links from other apps works initially after firefox has started, but after some time of a running firefox window being open ends up with a "Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile." message dialog when clicking links from other apps.
Adding MOZ_DBUS_REMOTE
in addition to MOZ_ENABLE_WAYLAND
appears to fix this in somewhat limited testing so far.
downstream bug report: https://bugs.launchpad.net/firefox/+bug/1921931
Comment 19•4 years ago
|
||
Yes, MOZ_DBUS_REMOTE and MOZ_ENABLE_WAYLAND are the correct variables to run Firefox in mixed environment. That will be fixed automatically when all FF builds uses Wayland, but we need to use that variables until that.
Updated•4 years ago
|
Updated•1 year ago
|
Description
•