cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9e2f846830475cbe851630f69af1d4dda2088b5c

commit 9e2f846830475cbe851630f69af1d4dda2088b5c
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Thu May 14 18:40:28 2015 +0200

    ethumb: use portable environment lookup.
---
 src/lib/ethumb/ethumb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index 20b7b7d..7d21b0c 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -259,7 +259,7 @@ ethumb_init(void)
    if (getuid() == geteuid())
 #endif
      {
-        home = getenv("HOME");
+        home = eina_environment_home_get();
         snprintf(buf, sizeof(buf), "%s/.thumbnails", home);
      }
 #if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
@@ -713,7 +713,7 @@ _ethumb_build_absolute_path(const char *path, char 
buf[PATH_MAX])
         if (getuid() == geteuid())
 #endif
           {
-             const char *home = getenv("HOME");
+             const char *home = eina_environment_home_get();
              if (!home) return NULL;
              strncpy(p, home, PATH_MAX - 1);
              p[PATH_MAX - 1] = 0;

-- 


Reply via email to