efreet: check desktop-directories
authorSebastian Dransfeld <sd@tango.flipp.net>
Fri, 2 Nov 2012 20:12:47 +0000 (20:12 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Fri, 2 Nov 2012 20:12:47 +0000 (20:12 +0000)
SVN revision: 78875

legacy/efreet/src/bin/efreetd_cache.c

index 8fc6dd86118ee4d4333912ff419d66757004ea99..e80921b53bd92bfdde90f7b5ff79bc78b13b1e7c 100644 (file)
@@ -493,9 +493,12 @@ cache_init(void)
 
    read_lists();
    /* TODO: Should check if system dirs has changed and handles extra_dirs */
-   /* TODO: get desktop-directories as well */
    desktop_system_dirs = efreet_default_dirs_get(efreet_data_home_get(),
                                                  efreet_data_dirs_get(), "applications");
+   desktop_system_dirs =
+      eina_list_merge(
+         desktop_system_dirs, efreet_default_dirs_get(efreet_data_home_get(),
+                                                      efreet_data_dirs_get(), "desktop-directories"));
    icon_changes_listen();
    desktop_changes_listen();
    cache_icon_update(EINA_FALSE);