okra pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=b4b522e49a6061fbe703d6f70cc512af4f9ca41a

commit b4b522e49a6061fbe703d6f70cc512af4f9ca41a
Author: Stephen okra Houston <[email protected]>
Date:   Mon Aug 29 14:14:40 2016 -0500

    Ephoto: USE XDG_CACHE_HOME/ephoto/thumbnails if XDG_CACHE_HOME exists, 
otherwise use $HOME/.cache/ephoto/thumbnails
---
 src/bin/ephoto_thumbnailer.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/ephoto_thumbnailer.c b/src/bin/ephoto_thumbnailer.c
index b29ceb5..c1f5226 100644
--- a/src/bin/ephoto_thumbnailer.c
+++ b/src/bin/ephoto_thumbnailer.c
@@ -88,7 +88,10 @@ main(int argc,
    ecore_file_init();
    ecore_ipc_init();
 
-   snprintf(_thumbdir, PATH_MAX, "%s/.cache/ephoto/thumbnails", 
getenv("HOME"));
+   if (getenv("XDG_CACHE_HOME"))
+     snprintf(_thumbdir, PATH_MAX, "%s/ephoto/thumbnails", 
getenv("XDG_CACHE_HOME"));
+   else
+     snprintf(_thumbdir, PATH_MAX, "%s/.cache/ephoto/thumbnails", 
getenv("HOME"));
    ecore_file_mkpath(_thumbdir);
 
    if (_e_ipc_init()) ecore_main_loop_begin();

-- 


Reply via email to