Closed Bug 1635830 Opened 5 years ago Closed 5 years ago

Error when opening links from outsides Firefox with GDK_BACKEND=wayland: Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

Categories

(Core :: Widget: Gtk, defect, P3)

75 Branch
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: rtgnj42, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0

Steps to reproduce:

Tried to open links from slack, terminal, etc., with GDK_BACKEND=wayland set in my session.

Actual results:

"Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." dialog pops up.

Expected results:

It should open the link in a new tab. It works normally without GDK_BACKEND=wayland (as in, Firefox is running on x11)

Because this bug's Severity is normal and has not been changed, and this bug's priority is -- (none,) indicating it has has not been previously triaged, the bug's Severity is being updated to -- (default, untriaged.)

Severity: normal → --

Hi,

Thanks for reporting this bug.

I don't have the configuration to try to reproduce it on my end, but as a starting point, I'll add this ticket to the Widget GTK component in the hope that someone with more expertise may take a look at this.

Regards,
Virginia

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Please don't use GDK_BACKEND, it's for debugging only. Use MOZ_ENABLE_WAYLAND=1
If you want unified X remote environment, set MOZ_DBUS_REMOTE=1, see https://mastransky.wordpress.com/2020/03/16/wayland-x11-how-to-run-firefox-in-mixed-environment/

Generally we can't fix that on Mozilla side until Wayland backend is used by default.

Blocks: wayland

MOZ_DBUS_REMOTE does solve the "firefox is already running" issue, however, the only way I can get FF to use wayland is to set GDK_BACKEND. I have already set these:

➜  ~ echo $MOZ_DBUS_REMOTE
1
➜  ~ echo $MOZ_WAYLAND_ENABLED
1

But FF still runs in X unless GDK_BACKEND=wayland.

(rtgnj42 from comment #5)

MOZ_WAYLAND_ENABLED

(Martin Stránský [:stransky] from comment #3)

Use MOZ_ENABLE_WAYLAND=1

That was it. Silly me. Thanks for helping me out.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.