summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-05-14 18:40:13 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-14 18:41:48 +0200
commit5098e787e8b406663da0b4a1657086782eb35670 (patch)
tree728e588ab07f16246a6bb9a381d5b38b5c1cf269 /src/lib/efreet
parent46e1ffd2576706ebb0f70cfb786e7930d3877809 (diff)
efreet: use portable environment lookup.
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/efreet_base.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/efreet/efreet_base.c b/src/lib/efreet/efreet_base.c
index ba7a7e8225..e5ea7dedd2 100644
--- a/src/lib/efreet/efreet_base.c
+++ b/src/lib/efreet/efreet_base.c
@@ -288,14 +288,8 @@ efreet_dirs_init(void)
288 } 288 }
289 else 289 else
290#endif 290#endif
291 efreet_home_dir = getenv("HOME"); 291 efreet_home_dir = eina_environment_home_get();
292 292
293#ifdef _WIN32
294 if (!efreet_home_dir || efreet_home_dir[0] == '\0')
295 {
296 efreet_home_dir = getenv("USERPROFILE");
297 }
298#endif
299 if (!efreet_home_dir || efreet_home_dir[0] == '\0') 293 if (!efreet_home_dir || efreet_home_dir[0] == '\0')
300 efreet_home_dir = "/tmp"; 294 efreet_home_dir = "/tmp";
301 295