use update file for icon cache
authorenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 2 Dec 2010 08:33:57 +0000 (08:33 +0000)
committerenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 2 Dec 2010 08:33:57 +0000 (08:33 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@55144 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/efreet_icon_cache_create.c
src/lib/efreet_cache.c

index 50d406a..026d4aa 100644 (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();
 
index 307a71c..cdc3641 100644 (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)
         {