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
- Launch Guake on Wayland session
- Run
echo $GDK_BACKEND in the terminal
- 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
Describe the bug
The
GDK_BACKENDenvironment 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_BACKENDtox11whileXDG_SESSION_TYPEis set towayland, can cause apps misbehaviour.E.g. GTK-based flatpak apps with
--socket=fallback-x11permission (which allows x11 socket only on X11 session) will fail to launch withGtk-WARNING **: 18:18:53.576: cannot open display:, unlessGDK_BACKENDis unset in advance.#1763 seems somehow related to this.
Expected behavior
Guake itself runs with
x11GDK backend, whileGDK_BACKENDenv var is unset in the shell.Actual behavior
GDK_BACKENDenv var is set tox11in the shell.To Reproduce
echo $GDK_BACKENDin the terminalx11in 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