raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=0e5fee0041d22376ac011f5d95efd182797aafd9
commit 0e5fee0041d22376ac011f5d95efd182797aafd9 Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Fri Apr 8 11:03:44 2016 +0900 eina tmp get - support other tmp dir env vars and dont use xdg runtime xdg runtime dir is NOT a tmp dir in the normal sense. it's not world writable nor world readable. only for the user. using eina_environment_tmp_get() would imply that it is a regular tmp dir, not a per-user private only runtime dir. that is something else entirely. @fix --- src/lib/eina/eina_util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/eina/eina_util.c b/src/lib/eina/eina_util.c index 02f90d4..62e1a79 100644 --- a/src/lib/eina/eina_util.c +++ b/src/lib/eina/eina_util.c @@ -91,7 +91,9 @@ eina_environment_tmp_get(void) # endif { tmp = getenv("TMPDIR"); - if (!tmp) tmp = getenv("XDG_RUNTIME_DIR"); + if (!tmp) tmp = getenv("TMP"); + if (!tmp) tmp = getenv("TEMPDIR"); + if (!tmp) tmp = getenv("TEMP"); } if (!tmp) tmp = "/tmp"; --
