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

GDK_BACKEND is propagated to the shell in terminal #1871

Closed
gasinvein opened this issue Aug 6, 2021 · 0 comments · Fixed by #1911
Closed

GDK_BACKEND is propagated to the shell in terminal #1871

gasinvein opened this issue Aug 6, 2021 · 0 comments · Fixed by #1911

Comments

@gasinvein
Copy link

Describe the bug

The GDK_BACKEND environment variable set by Guake entrypoint is propagated to terminals and, in turn, to all the child processes.
This forces all GUI apps launched from Guake to use XWayland on Wayland session.

On a Wayland session, setting GDK_BACKEND to x11 while XDG_SESSION_TYPE is set to wayland, can cause apps misbehaviour.
E.g. GTK-based flatpak apps with --socket=fallback-x11 permission (which allows x11 socket only on X11 session) will fail to launch with Gtk-WARNING **: 18:18:53.576: cannot open display:, unless GDK_BACKEND is unset in advance.

#1763 seems somehow related to this.

Expected behavior

Guake itself runs with x11 GDK backend, while GDK_BACKEND env var is unset in the shell.

Actual behavior

GDK_BACKEND env var is set to x11 in the shell.

To Reproduce

  1. Launch Guake on Wayland session
  2. Run echo $GDK_BACKEND in the terminal
  3. Observe x11 in output

$ guake --support

Guake Version: 3.7.0

Vte Version: 0.64.2

Vte Runtime Version: 0.64.2


GTK+ Version: 3.24.30

GDK Backend: GdkX11.X11Display


Desktop Session: gnome


Display: :0

RGBA visual: True

Composited: True

  • Monitor: 0 - XWAYLAND0
    • Geometry: 2560 x 1440 at 0, 0
    • Size: 550 x 310 mm²
    • Primary: True
    • Refresh rate: 59.91 Hz
    • Subpixel layout: unknown
@gasinvein gasinvein changed the title GDK_BACKEND is propagated to terminal GDK_BACKEND is propagated to the shell in terminal Aug 6, 2021
Davidy22 added a commit to Davidy22/guake that referenced this issue Oct 1, 2021
Don't automatically inherit env variables and manually pass modified env

Fixes Guake#1871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants