forked from enlightenment/enlightenment
Move setting of XDG_RUNTIME_DIR to e_main
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
4be1d4537a
commit
04b331ecb3
|
@ -217,9 +217,6 @@ 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()))
|
||||
{
|
||||
|
|
|
@ -149,6 +149,9 @@ _xdg_data_dirs_augment(void)
|
|||
snprintf(buf, sizeof(buf), "%s:/usr/local/share:/usr/share", newpath);
|
||||
e_util_env_set("XDG_DATA_DIRS", buf);
|
||||
}
|
||||
|
||||
if (!getenv("XDG_RUNTIME_DIR"))
|
||||
e_util_env_set("XDG_RUNTIME_DIR", "/tmp");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue