forked from enlightenment/enlightenment
As we need XDG_RUNTIME_DIR to be set before we can run wayland-clients
inside E, check if it is set, and if not set it. Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
parent
ae06da67c7
commit
d498c41467
|
@ -217,6 +217,9 @@ e_comp_wl_init(void)
|
|||
if (!(_e_wl_comp = E_NEW(E_Wayland_Compositor, 1)))
|
||||
return EINA_FALSE;
|
||||
|
||||
if (!getenv("XDG_RUNTIME_DIR"))
|
||||
e_util_env_set("XDG_RUNTIME_DIR", "/tmp");
|
||||
|
||||
/* try to create a wayland display */
|
||||
if (!(_e_wl_comp->wl.display = wl_display_create()))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue