stefan pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=61478af3a6c4f9263e715d103751fbb285ed2781
commit 61478af3a6c4f9263e715d103751fbb285ed2781 Author: Stefan Schmidt <s.schm...@samsung.com> Date: Thu Sep 11 10:45:54 2014 +0200 eina_file: Try to use XDG_RUNTIME_DIR for tmp dir first Instead using $TMPDIR and falling back to /tmp we now try $XDG_RUNTIME_DIR first. "$XDG_RUNTIME_DIR defines the base directory relative to which user-specific non-essential runtime files and other file objects (such as sockets, named pipes, ...) should be stored. The directory MUST be owned by the user, and he MUST be the only one having read and write access to it. Its Unix access mode MUST be 0700." While improving our security by isolating these files from other users this has the potential to break things. I have not seen any breakage in testing but keep this commit in mind if something strange happens on your system. --- src/lib/eina/eina_file_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c index 9b2539b..9c9e9af 100644 --- a/src/lib/eina/eina_file_common.c +++ b/src/lib/eina/eina_file_common.c @@ -906,7 +906,8 @@ eina_file_mkstemp(const char *templatename, Eina_Tmpstr **path) #if defined(HAVE_GETUID) && defined(HAVE_GETEUID) if (getuid() == geteuid()) #endif - tmpdir = getenv("TMPDIR"); + tmpdir = getenv("XDG_RUNTIME_DIR"); + if (!tmpdir) tmpdir = getenv("TMPDIR"); if (!tmpdir) tmpdir = "/tmp"; #else tmpdir = (char *)evil_tmpdir_get(); --