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.
Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
GDK_DEBUG (MISC, "opening display %s", display_name ? display_name : "");
- /* If this variable is unset then wayland initialisation will surely
- * fail, logging a fatal error in the process. Save ourselves from
- * that.
- */
- if (g_getenv ("XDG_RUNTIME_DIR") == NULL)
- return NULL;
-
wl_log_set_handler_client (log_handler);
wl_display = wl_display_connect (display_name);