Efreet: Only add known desktop types to cache

SVN revision: 63020
This commit is contained in:
Sebastian Dransfeld 2011-08-31 09:10:18 +00:00
parent d459c61334
commit b8e42ad9cd
1 changed files with 13 additions and 1 deletions

View File

@ -167,7 +167,19 @@ efreet_desktop_get(const char *file)
/* If we didn't find this file in the eet cache, add path to search path */
if (!desktop->eet)
efreet_cache_desktop_add(desktop);
{
/* Check whether the desktop type is a system type,
* and therefor known by the cache builder */
Efreet_Desktop_Type_Info *info;
info = eina_list_nth(efreet_desktop_types, desktop->type);
if (info && (
info->id == EFREET_DESKTOP_TYPE_APPLICATION ||
info->id == EFREET_DESKTOP_TYPE_LINK ||
info->id == EFREET_DESKTOP_TYPE_DIRECTORY
))
efreet_cache_desktop_add(desktop);
}
return desktop;
}