Move setting of XDG_RUNTIME_DIR to e_main

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-05-28 07:05:00 +01:00
parent 4be1d4537a
commit 04b331ecb3
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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