summaryrefslogtreecommitdiff
path: root/legacy/efreet
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2011-04-12 22:40:35 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2011-04-12 22:40:35 +0000
commit1ff5c07744a5f9c66395fcffac8763d6da34e90a (patch)
treeef5f5703eee4972b4fd870e39252689dae101d4a /legacy/efreet
parentf67fbf23e5da01cb8f19f80202724cfc4a1f91c4 (diff)
Efreet: Only create cache dir if we update cache
SVN revision: 58601
Diffstat (limited to 'legacy/efreet')
-rw-r--r--legacy/efreet/src/lib/efreet_cache.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/legacy/efreet/src/lib/efreet_cache.c b/legacy/efreet/src/lib/efreet_cache.c
index a84eec2174..b801d89389 100644
--- a/legacy/efreet/src/lib/efreet_cache.c
+++ b/legacy/efreet/src/lib/efreet_cache.c
@@ -131,15 +131,15 @@ efreet_cache_init(void)
131 fallbacks = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_icon_fallback_free)); 131 fallbacks = eina_hash_string_superfast_new(EINA_FREE_CB(efreet_cache_icon_fallback_free));
132 desktops = eina_hash_string_superfast_new(NULL); 132 desktops = eina_hash_string_superfast_new(NULL);
133 133
134 snprintf(buf, sizeof(buf), "%s/efreet", efreet_cache_home_get());
135 if (!ecore_file_exists(buf))
136 {
137 if (!ecore_file_mkpath(buf)) goto error;
138 efreet_setowner(buf);
139 }
140
141 if (efreet_cache_update) 134 if (efreet_cache_update)
142 { 135 {
136 snprintf(buf, sizeof(buf), "%s/efreet", efreet_cache_home_get());
137 if (!ecore_file_exists(buf))
138 {
139 if (!ecore_file_mkpath(buf)) goto error;
140 efreet_setowner(buf);
141 }
142
143 cache_exe_handler = ecore_event_handler_add(ECORE_EXE_EVENT_DEL, 143 cache_exe_handler = ecore_event_handler_add(ECORE_EXE_EVENT_DEL,
144 cache_exe_cb, NULL); 144 cache_exe_cb, NULL);
145 if (!cache_exe_handler) goto error; 145 if (!cache_exe_handler) goto error;