summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-05-14 18:38:59 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-14 18:41:48 +0200
commit130cdb951398785d91c6cc1340d9f2e633229bf8 (patch)
tree70dcff77e8c4cead8e28c2086266251e1102efa4 /src/lib/eina
parent0ed04f768170f49b2f96140ef7cc3983b8f4adb9 (diff)
eina: use portable environment lookup.
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_debug_monitor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/eina/eina_debug_monitor.c b/src/lib/eina/eina_debug_monitor.c
index 2c6c2a626b..bf9487183f 100644
--- a/src/lib/eina/eina_debug_monitor.c
+++ b/src/lib/eina/eina_debug_monitor.c
@@ -19,6 +19,7 @@
19#include "eina_debug.h" 19#include "eina_debug.h"
20#include "eina_types.h" 20#include "eina_types.h"
21#include "eina_evlog.h" 21#include "eina_evlog.h"
22#include "eina_util.h"
22 23
23#ifdef EINA_HAVE_DEBUG 24#ifdef EINA_HAVE_DEBUG
24 25
@@ -340,9 +341,8 @@ _socket_home_get()
340{ 341{
341 // get possible debug daemon socket directory base 342 // get possible debug daemon socket directory base
342 const char *dir = getenv("XDG_RUNTIME_DIR"); 343 const char *dir = getenv("XDG_RUNTIME_DIR");
343 if (!dir) dir = getenv("HOME"); 344 if (!dir) dir = eina_environment_home_get();
344 if (!dir) dir = getenv("TMPDIR"); 345 if (!dir) dir = eina_environment_tmp_get();
345 if (!dir) dir = "/tmp";
346 return dir; 346 return dir;
347} 347}
348 348