summaryrefslogtreecommitdiff
path: root/src/bin/efreet
diff options
context:
space:
mode:
authorSebastian Dransfeld <sebastian.dransfeld@sintef.no>2013-06-21 10:00:20 +0200
committerSebastian Dransfeld <sebastian.dransfeld@sintef.no>2013-06-21 10:00:20 +0200
commitebcd97cc938851352642eb42e3c5bc43ee288631 (patch)
tree9437633f5b3bd8cbdd3c370a21decb7ff11d19ad /src/bin/efreet
parent58fc3a8f32d6fe71910ee0479afc3c8478c12540 (diff)
efreet: Create cache dir in efreet_cache_init
efreetd used efreet functions before efreet init which fails.
Diffstat (limited to 'src/bin/efreet')
-rw-r--r--src/bin/efreet/efreetd_cache.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/bin/efreet/efreetd_cache.c b/src/bin/efreet/efreetd_cache.c
index c286b13db0..23ff1ab656 100644
--- a/src/bin/efreet/efreetd_cache.c
+++ b/src/bin/efreet/efreetd_cache.c
@@ -494,7 +494,6 @@ Eina_Bool
494cache_init(void) 494cache_init(void)
495{ 495{
496 char **argv; 496 char **argv;
497 char buf[PATH_MAX];
498 497
499 ecore_app_args_get(NULL, &argv); 498 ecore_app_args_get(NULL, &argv);
500 499
@@ -505,13 +504,6 @@ cache_init(void)
505 PACKAGE_DATA_DIR, 504 PACKAGE_DATA_DIR,
506 PACKAGE_DATA_DIR); 505 PACKAGE_DATA_DIR);
507 506
508 snprintf(buf, sizeof(buf), "%s/efreet", efreet_cache_home_get());
509 if (!ecore_file_mkpath(buf))
510 {
511 ERR("Failed to create directory '%s'", buf);
512 goto error;
513 }
514
515 cache_exe_del_handler = ecore_event_handler_add(ECORE_EXE_EVENT_DEL, 507 cache_exe_del_handler = ecore_event_handler_add(ECORE_EXE_EVENT_DEL,
516 cache_exe_del_cb, NULL); 508 cache_exe_del_cb, NULL);
517 if (!cache_exe_del_handler) 509 if (!cache_exe_del_handler)