DisplayServer (Linux): ensure $XDG_RUNTIME_DIR is set before connecting

wayland
This commit is contained in:
Carter Li
2024-07-30 23:50:19 +08:00
parent 88a7468489
commit ced67e81a5
@@ -136,6 +136,9 @@ uint32_t ffWaylandHandleRotation(WaylandDisplay* display)
const char* ffdsConnectWayland(FFDisplayServerResult* result)
{
if (getenv("XDG_RUNTIME_DIR") == NULL)
return "Wayland requires $XDG_RUNTIME_DIR being set";
FF_LIBRARY_LOAD(wayland, &instance.config.library.libWayland, false, "libwayland-client" FF_LIBRARY_EXTENSION, 1)
FF_LIBRARY_LOAD_SYMBOL_MESSAGE(wayland, wl_display_connect)