forked from enlightenment/efl
parent
3806dd7a2c
commit
cfc96c36ad
|
@ -40,6 +40,11 @@ cache_add(const char *path, const char *file_id, int priority __UNUSED__)
|
||||||
|
|
||||||
ext = strrchr(path, '.');
|
ext = strrchr(path, '.');
|
||||||
if (!ext || (strcmp(ext, ".desktop") && strcmp(ext, ".directory"))) return 1;
|
if (!ext || (strcmp(ext, ".desktop") && strcmp(ext, ".directory"))) return 1;
|
||||||
|
/*
|
||||||
|
* TODO:
|
||||||
|
* Get cached version first and check mtime. Only get uncached if we need
|
||||||
|
* to update.
|
||||||
|
*/
|
||||||
desk = efreet_desktop_uncached_new(path);
|
desk = efreet_desktop_uncached_new(path);
|
||||||
|
|
||||||
if (!desk || (desk->type != EFREET_DESKTOP_TYPE_APPLICATION &&
|
if (!desk || (desk->type != EFREET_DESKTOP_TYPE_APPLICATION &&
|
||||||
|
|
Loading…
Reference in New Issue