Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xdg-open fails to open firefox #1763

Closed
treeshateorcs opened this issue May 23, 2020 · 3 comments
Closed

xdg-open fails to open firefox #1763

treeshateorcs opened this issue May 23, 2020 · 3 comments

Comments

@treeshateorcs
Copy link

treeshateorcs commented May 23, 2020

Describe the bug

when i try to open a website with xdg-open, for some reason it doesn't open in the existing firefox window, but it tries to start a new firefox session, so i get an error after a few seconds, and the site doesn't open at all

this doesn't happen with chrome, which explicitly states that it will open a new tab in the existing session, after issuing an xdg-open command. neither does it happen in gnome-terminal (with both firefox or chrome)

Expected behavior

site should open in the existing firefox session

Actual behavior

image

To Reproduce

  1. install firefox and guake
  2. make firefox your default browser
  3. xdg-open "https://google.com" in guake

$ guake --support

Guake Version: 3.7.0

Vte Version: 0.60.2

Vte Runtime Version: 0.60.2


GTK+ Version: 3.24.20

GDK Backend: gi.GdkWaylandDisplay


Desktop Session: gnome


Display: wayland-0

RGBA visual: True

Composited: True

  • Monitor: 0 - AUO 0x243d
    • Geometry: 1920 x 1080 at 0, 0
    • Size: 310 x 170 mm²
    • Primary: False
    • Refresh rate: 60.03 Hz
    • Subpixel layout: unknown
@eeshugerman
Copy link

eeshugerman commented Jan 27, 2021

Does it "fix" the issue if you do GDK_BACKEND=wayland xdg-open "https://google.com"?

I run into this issue with other programs -- Firefox is running with GDK_BACKEND=wayland, but then other programs try to open a tab in Firefox without setting this variable and apparently Firefox doesn't like that.

Not sure what the proper fix is, but it seems to me it would be ideal if Firefox could handle the situation gracefully so that this would be fixed everywhere.

@eeshugerman
Copy link

eeshugerman commented Jan 28, 2021

There's some related discussion on Firefox bug tracker. Looks like the solution might be to run Firefox with MOZ_ENABLE_WAYLAND=1 instead of GDK_BACKEND=wayland. But I haven't tested this yet. The solution is to set MOZ_DBUS_REMOTE=1 system (or user) wide. I set it in ~/.config/environment.d/firefox-wayland.conf and it worked after rebooting.

@Davidy22
Copy link
Collaborator

Davidy22 commented Sep 4, 2021

If this is solved with firefox related settings entirely, I'll close this as this is probably a firefox issue

@Davidy22 Davidy22 closed this as completed Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants