summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/efreet/efreet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/efreet/efreet.c b/src/lib/efreet/efreet.c
index 9c22d6386a..d17e1dabaf 100644
--- a/src/lib/efreet/efreet.c
+++ b/src/lib/efreet/efreet.c
@@ -98,7 +98,11 @@ _efreet_efreet_app_interface_set(void)
98 // $HOME/.cache should be used. 98 // $HOME/.cache should be used.
99 ENV_HOME_SET("XDG_CACHE_HOME", ".cache", cache); 99 ENV_HOME_SET("XDG_CACHE_HOME", ".cache", cache);
100 100
101#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
101 if ((getuid() != geteuid()) || (!(s = getenv("XDG_RUNTIME_DIR")))) 102 if ((getuid() != geteuid()) || (!(s = getenv("XDG_RUNTIME_DIR"))))
103#else
104 if (!(s = getenv("XDG_RUNTIME_DIR")))
105#endif
102 user.run = NULL; 106 user.run = NULL;
103 else 107 else
104 user.run = s; 108 user.run = s;