Skip to content

wayland: Try to open the display even if XDG_RUNTIME_DIR is unset

Ludovico de Nittis requested to merge denittis/gtk:wayland_display into main

Since Wayland 1.15, it is now possible to use absolute paths in "WAYLAND_DISPLAY". In that scenario, having a valid "XDG_RUNTIME_DIR" is not a requirement anymore.

For this reason we remove the "XDG_RUNTIME_DIR" check and we let wl_display_connect() decide if our environment is correct.


Upstream reference: https://gitlab.freedesktop.org/wayland/wayland/-/blob/3956948fac5c0bf29ee13fd1c299a47a16c05a6d/src/wayland-client.c#L1110

Merge request reports