englebass pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=ee3bcaf71d978d225518edf570985525caafa3c9
commit ee3bcaf71d978d225518edf570985525caafa3c9 Author: kabeer khan <kabeer.k...@samsung.com> Date: Tue Nov 18 12:24:06 2014 +0100 efreetd_cache: Resolved TODO checking symbolic link to monitor real path Summary: Signed-off-by: kabeer khan <kabeer.k...@samsung.com> Reviewers: englebass Reviewed By: englebass Subscribers: devilhorns, cedric Differential Revision: https://phab.enlightenment.org/D1625 --- src/lib/efreet/efreet_desktop.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/lib/efreet/efreet_desktop.c b/src/lib/efreet/efreet_desktop.c index f672ba7..3de19be 100644 --- a/src/lib/efreet/efreet_desktop.c +++ b/src/lib/efreet/efreet_desktop.c @@ -168,9 +168,22 @@ efreet_desktop_get(const char *file) info->id == EFREET_DESKTOP_TYPE_LINK || info->id == EFREET_DESKTOP_TYPE_DIRECTORY )) + { efreet_cache_desktop_add(desktop); + /* Check Symbolic link */ + char *sym_file; + Efreet_Desktop *sym_desktop; + sym_file = ecore_file_readlink(file); + if (sym_file) + { + sym_desktop = efreet_desktop_new(sym_file); + if (sym_desktop && !sym_desktop->eet) + efreet_cache_desktop_add(sym_desktop); + free(sym_file); + efreet_desktop_free(sym_desktop); + } + } } - return desktop; } --