use update file for icon cache

SVN revision: 55144
This commit is contained in:
Sebastian Dransfeld 2010-12-02 08:33:57 +00:00
parent fec2ca310f
commit 0ccccf1934
2 changed files with 11 additions and 1 deletions

View File

@ -368,6 +368,7 @@ main(int argc, char **argv)
char *dir = NULL;
Eina_Bool changed = EINA_FALSE;
int lockfd = -1;
int tmpfd = -1;
int i;
for (i = 1; i < argc; i++)
@ -529,6 +530,15 @@ main(int argc, char **argv)
/* save data */
eet_close(ef);
/* touch update file */
snprintf(file, sizeof(file), "%s/.efreet/icon_data.update", efreet_home_dir_get());
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
if (tmpfd >= 0)
{
write(tmpfd, "a", 1);
close(tmpfd);
}
on_error_efreet:
efreet_shutdown();

View File

@ -681,7 +681,7 @@ cache_update_cb(void *data __UNUSED__, Ecore_File_Monitor *em __UNUSED__,
ecore_event_add(EFREET_EVENT_DESKTOP_CACHE_UPDATE, ev, desktop_cache_update_free, d);
}
#ifdef ICON_CACHE
else if (!strcmp(file, efreet_icon_cache_file()))
else if (!strcmp(file, "icon_data.update"))
{
if (theme_cache)
{