Linux env variable GDK_BACKEND and WAYLAND_DEBUG

I tried

GDK_BACKEND=x11 kicad
GDK_BACKEND=wayland WAYLAND_DEBUG=1 kicad

I don’t see where we can check the GDK backend, for both case it reports Platform: Fedora Linux 42 (Workstation Edition), 64 bit, Little endian, wxGTK, X11, plasma, wayland

And WAYLAND_DEBUG=1 doesn’t log. Is it related to Wx or KiCad stdout/err muting ?

Unless kicad and wxwidgets are built with EGL support, kicad sets GDK_BACKEND=x11 inside itself. See:

https://gitlab.com/kicad/code/kicad/-/blob/3b0dac9491130298067c1ca27be8a573203e564c/libs/kiplatform/os/unix/environment.cpp#L41

1 Like

OK, that’s what I suspected.

However, it would be nice to have a more explicit information in KiCad. I mean the compile setup and backend. We cannot expect that a distribution maintainer will not patch… Moreover pstree doesn’t report the process belongs to XWayland. I believed it was the case.

If kicad is built with EGL support, this is reported:

Build settings:
	KICAD_USE_EGL=ON

and “Wayland” backend is reported if it’s being used, e.g.:

Platform: Arch Linux, 64 bit, Little endian, wxGTK, Wayland, KDE, wayland

and the last two strings are values of XDG_SESSION_DESKTOP and XDG_SESSION_TYPE env vars.

1 Like