devilhorns pushed a commit to branch master.

commit 04b331ecb3aa82bf53e603b5d218344cf882836c
Author: Chris Michael <[email protected]>
Date:   Tue May 28 07:05:00 2013 +0100

    Move setting of XDG_RUNTIME_DIR to e_main
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/e_comp_wl.c | 3 ---
 src/bin/e_main.c    | 3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index f311ecb..72652b6 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -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()))
      {
diff --git a/src/bin/e_main.c b/src/bin/e_main.c
index fe6f2ca..1a71aa7 100644
--- a/src/bin/e_main.c
+++ b/src/bin/e_main.c
@@ -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

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may

Reply via email to