efreet: cache all types of desktop files

SVN revision: 47792
This commit is contained in:
Sebastian Dransfeld 2010-04-06 18:36:04 +00:00
parent c6ec14606e
commit 207f5dc447
1 changed files with 1 additions and 6 deletions

View File

@ -41,12 +41,7 @@ cache_add(const char *path, const char *file_id, int priority __UNUSED__, int *c
ext = strrchr(path, '.');
if (!ext || (strcmp(ext, ".desktop") && strcmp(ext, ".directory"))) return 1;
desk = efreet_desktop_new(path);
if (!desk || (desk->type != EFREET_DESKTOP_TYPE_APPLICATION &&
desk->type != EFREET_DESKTOP_TYPE_DIRECTORY))
{
if (desk) efreet_desktop_free(desk);
return 1;
}
if (!desk) return 1;
if (!desk->eet)
{
/* This file isn't in cache */