devilhorns pushed a commit to branch master.

commit d498c41467de359fb73b7509dc378e4d7e0390ba
Author: Chris Michael <[email protected]>
Date:   Fri May 24 21:52:47 2013 +0100

    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 <[email protected]>
---
 src/bin/e_comp_wl.c | 3 +++
 1 file changed, 3 insertions(+)

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

-- 

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