summaryrefslogtreecommitdiff
path: root/src/lib/efreet
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 /src/lib/efreet
parent9f65759387d4d8d8bb96bb997b40ac8f04214b63 (diff)
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
Diffstat (limited to 'src/lib/efreet')
-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)
168 info->id == EFREET_DESKTOP_TYPE_LINK || 168 info->id == EFREET_DESKTOP_TYPE_LINK ||
169 info->id == EFREET_DESKTOP_TYPE_DIRECTORY 169 info->id == EFREET_DESKTOP_TYPE_DIRECTORY
170 )) 170 ))
171 {
171 efreet_cache_desktop_add(desktop); 172 efreet_cache_desktop_add(desktop);
173 /* Check Symbolic link */
174 char *sym_file;
175 Efreet_Desktop *sym_desktop;
176 sym_file = ecore_file_readlink(file);
177 if (sym_file)
178 {
179 sym_desktop = efreet_desktop_new(sym_file);
180 if (sym_desktop && !sym_desktop->eet)
181 efreet_cache_desktop_add(sym_desktop);
182 free(sym_file);
183 efreet_desktop_free(sym_desktop);
184 }
185 }
172 } 186 }
173
174 return desktop; 187 return desktop;
175} 188}
176 189