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:
Chris Michael 2013-05-24 21:52:47 +01:00
parent ae06da67c7
commit d498c41467
1 changed files with 3 additions and 0 deletions

View File

@ -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()))
{