aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkabeer khan <kabeer.khan@samsung.com>2014-11-18 12:24:06 +0100
committerSebastian Dransfeld <sd@tango.flipp.net>2014-11-18 12:24:06 +0100
commitee3bcaf71d978d225518edf570985525caafa3c9 (patch)
tree2562a99c645d25721b5cd7832276592bfa8d73a2
parentEcore File : Added test suite for Ecore File module (diff)
downloadefl-ee3bcaf71d978d225518edf570985525caafa3c9.tar.gz
efreetd_cache: Resolved TODO checking symbolic link to monitor real path
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com> Reviewers: englebass Reviewed By: englebass Subscribers: devilhorns, cedric Differential Revision: https://phab.enlightenment.org/D1625
-rw-r--r--src/lib/efreet/efreet_desktop.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/lib/efreet/efreet_desktop.c b/src/lib/efreet/efreet_desktop.c
index f672ba7545..3de19be370 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;
}