From 7adfa90371a55a9bc6668ff38c4858232d70fc75 Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Tue, 13 Nov 2012 20:36:26 +0000 Subject: [PATCH] efreet: monitor links to directories SVN revision: 79243 --- legacy/efreet/src/bin/efreetd_cache.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/legacy/efreet/src/bin/efreetd_cache.c b/legacy/efreet/src/bin/efreetd_cache.c index 9a920e99c6..6ccc4a6861 100644 --- a/legacy/efreet/src/bin/efreetd_cache.c +++ b/legacy/efreet/src/bin/efreetd_cache.c @@ -235,8 +235,9 @@ icon_changes_listen_recursive(const char *path, Eina_Bool base) if (!it) return; EINA_ITERATOR_FOREACH(it, info) { - if (info->type != EINA_FILE_DIR) continue; - icon_changes_monitor_add(info->path); + if (((info->type == EINA_FILE_LNK) && (ecore_file_is_dir(info->path))) || + (info->type == EINA_FILE_DIR)) + icon_changes_monitor_add(info->path); } eina_iterator_free(it); } @@ -347,8 +348,9 @@ desktop_changes_listen_recursive(const char *path, Eina_Bool base) if (!it) return; EINA_ITERATOR_FOREACH(it, info) { - if (info->type != EINA_FILE_DIR) continue; - desktop_changes_listen_recursive(info->path, EINA_FALSE); + if (((info->type == EINA_FILE_LNK) && (ecore_file_is_dir(info->path))) || + (info->type == EINA_FILE_DIR)) + desktop_changes_listen_recursive(info->path); } eina_iterator_free(it); }