Don't create cache dir several times

SVN revision: 56784
devs/devilhorns/wayland_egl
Sebastian Dransfeld 12 years ago
parent 582ecd7203
commit 711b6b10a0
  1. 4
      legacy/efreet/ChangeLog
  2. 10
      legacy/efreet/src/bin/efreet_desktop_cache_create.c
  3. 5
      legacy/efreet/src/bin/efreet_icon_cache_create.c

@ -48,3 +48,7 @@
* Fix doc for efreet_utils.{h,c},efreet_mime.c
* Add comment for all internal EAPI functions
* Remove doc for removed _efreet_log_domain_global
2011-02-07 Sebastian Dransfeld
* Don't create cache dir several times

@ -251,16 +251,6 @@ main(int argc, char **argv)
goto efreet_error;
}
/* create dir for desktop cache */
dir = ecore_file_dir_get(efreet_desktop_cache_file());
if (!ecore_file_mkpath(dir)) goto efreet_error;
IF_FREE(dir);
/* create dir for util cache */
dir = ecore_file_dir_get(efreet_desktop_util_cache_file());
if (!ecore_file_mkpath(dir)) goto efreet_error;
IF_FREE(dir);
/* finish efreet init */
if (!efreet_init()) goto efreet_error;
edd = efreet_desktop_edd();

@ -727,11 +727,6 @@ main(int argc, char **argv)
lockfd = cache_lock_file();
if (lockfd == -1) return -1;
/* create dir for icon cache */
dir = ecore_file_dir_get(efreet_icon_cache_file(EFREET_CACHE_ICON_FALLBACK));
if (!ecore_file_mkpath(dir)) goto on_error;
free(dir);
/* finish efreet init */
if (!efreet_init()) goto on_error;
/* Need to init edd's, so they are like we want, not like userspace wants */

Loading…
Cancel
Save