ethumb: use portable environment lookup.

This commit is contained in:
Cedric BAIL 2015-05-14 18:40:28 +02:00
parent 5098e787e8
commit 9e2f846830
1 changed files with 2 additions and 2 deletions

View File

@ -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;