summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/efreet/src/bin/efreetd_cache.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/legacy/efreet/src/bin/efreetd_cache.c b/legacy/efreet/src/bin/efreetd_cache.c
index 30ab231378..2b53060d52 100644
--- a/legacy/efreet/src/bin/efreetd_cache.c
+++ b/legacy/efreet/src/bin/efreetd_cache.c
@@ -422,21 +422,20 @@ cache_desktop_dir_add(const char *dir)
422 422
423 san = eina_file_path_sanitize(dir); 423 san = eina_file_path_sanitize(dir);
424 if (!san) return; 424 if (!san) return;
425 if ((!eina_list_search_unsorted_list(desktop_system_dirs, strcmplen, san)) && 425 if ((l = eina_list_search_unsorted_list(desktop_system_dirs, strcmplen, san)))
426 (!eina_list_search_unsorted_list(desktop_extra_dirs, EINA_COMPARE_CB(strcmp), san)))
427 {
428 /* Not a registered path */
429 desktop_extra_dirs = eina_list_append(desktop_extra_dirs, eina_stringshare_add(san));
430 save_list("extra_desktop.dirs", desktop_extra_dirs);
431 cache_desktop_update();
432 }
433 else if ((l = eina_list_search_unsorted_list(desktop_system_dirs, strcmplen, san)))
434 { 426 {
435 /* Path is registered, but maybe not monitored */ 427 /* Path is registered, but maybe not monitored */
436 const char *path = eina_list_data_get(l); 428 const char *path = eina_list_data_get(l);
437 if (!eina_hash_find(change_monitors, path)) 429 if (!eina_hash_find(change_monitors, path))
438 cache_desktop_update(); 430 cache_desktop_update();
439 } 431 }
432 else if (!eina_list_search_unsorted_list(desktop_extra_dirs, EINA_COMPARE_CB(strcmp), san))
433 {
434 /* Not a registered path */
435 desktop_extra_dirs = eina_list_append(desktop_extra_dirs, eina_stringshare_add(san));
436 save_list("extra_desktop.dirs", desktop_extra_dirs);
437 cache_desktop_update();
438 }
440 free(san); 439 free(san);
441} 440}
442 441