if (!ecore_file_mkpath(file)) goto efreet_error;
efreet_setowner(file);
}
+ snprintf(file, sizeof(file), "%s/efreet/update", efreet_cache_home_get());
+ if (!ecore_file_exists(file))
+ {
+ if (!ecore_file_mkpath(file)) goto efreet_error;
+ efreet_setowner(file);
+ }
/* lock process, so that we only run one copy of this program */
lockfd = cache_lock_file();
}
/* touch update file */
- snprintf(file, sizeof(file), "%s/efreet/desktop_data.update", efreet_cache_home_get());
+ snprintf(file, sizeof(file), "%s/efreet/update/desktop_data.update", efreet_cache_home_get());
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
if (tmpfd >= 0)
{
if (!ecore_file_mkpath(file)) return -1;
efreet_setowner(file);
}
+ snprintf(file, sizeof(file), "%s/efreet/update", efreet_cache_home_get());
+ if (!ecore_file_exists(file))
+ {
+ if (!ecore_file_mkpath(file)) return -1;
+ efreet_setowner(file);
+ }
/* lock process, so that we only run one copy of this program */
lockfd = cache_lock_file();
free(theme_version);
/* touch update file */
- snprintf(file, sizeof(file), "%s/efreet/icon_data.update", efreet_cache_home_get());
+ snprintf(file, sizeof(file), "%s/efreet/update/icon_data.update", efreet_cache_home_get());
tmpfd = open(file, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
if (tmpfd >= 0)
{
}
efreet_setowner(buf);
}
+ snprintf(buf, sizeof(buf), "%s/efreet/update", efreet_cache_home_get());
+ if (!ecore_file_exists(buf))
+ {
+ if (!ecore_file_mkpath(buf))
+ {
+ ERR("Failed to create directory '%s'", buf);
+ goto error;
+ }
+ efreet_setowner(buf);
+ }
cache_exe_handler = ecore_event_handler_add(ECORE_EXE_EVENT_DEL,
cache_exe_cb, NULL);