efreet: cache all types of desktop files
SVN revision: 47792
This commit is contained in:
parent
c6ec14606e
commit
207f5dc447
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue