efreet: Always run cache update on init

SVN revision: 47537
This commit is contained in:
Sebastian Dransfeld 2010-03-28 19:31:14 +00:00
parent d8bde974e6
commit d075ee43c2
1 changed files with 2 additions and 9 deletions

View File

@ -213,16 +213,9 @@ efreet_desktop_init(void)
cache_monitor = ecore_file_monitor_add(buf,
efreet_desktop_cache_update,
NULL);
}
/* TODO:
* Should add a lock here, so that several programs starting at the same
* time wont run several copies of efreet_desktop_cache_create
*
* Or do the right thing and run the exe with ecore_exe
*/
if (!ecore_file_exists(efreet_desktop_cache_file()))
system(PACKAGE_BIN_DIR "/efreet_desktop_cache_create");
ecore_exe_run(PACKAGE_BIN_DIR "/efreet_desktop_cache_create", NULL);
}
cache = eet_open(efreet_desktop_cache_file(), EET_FILE_MODE_READ);