Merge branch 'wayland_display' into 'main'
wayland: Try to open the display even if XDG_RUNTIME_DIR is unset See merge request GNOME/gtk!5732
This commit is contained in:
@@ -586,13 +586,6 @@ _gdk_wayland_display_open (const char *display_name)
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user