if (!eina_init()) goto eina_error;
if (!eet_init()) goto eet_error;
+ efreet_cache_update = 0;
+
/* create homedir */
snprintf(file, sizeof(file), "%s/.efreet", efreet_home_dir_get());
if (!ecore_file_mkpath(file)) goto efreet_error;
#include "efreet_private.h"
#include "efreet_xml.h"
+EAPI int efreet_cache_update = 1;
+
static int _efreet_init_count = 0;
static int efreet_parsed_locale = 0;
static const char *efreet_lang = NULL;
int
efreet_desktop_init(void)
{
- char buf[PATH_MAX];
-
_efreet_desktop_log_dom = eina_log_domain_register("Efreet_desktop", EFREET_DEFAULT_LOG_COLOR);
if (_efreet_desktop_log_dom < 0)
{
EFREET_EVENT_CACHE_UPDATE = ecore_event_type_new();
- snprintf(buf, sizeof(buf), "%s/.efreet", efreet_home_dir_get());
- if (!ecore_file_mkpath(buf)) goto edd_error;
- cache_monitor = ecore_file_monitor_add(buf,
- efreet_desktop_cache_update,
- NULL);
+ if (efreet_cache_update)
+ {
+ char buf[PATH_MAX];
+
+ snprintf(buf, sizeof(buf), "%s/.efreet", efreet_home_dir_get());
+ if (!ecore_file_mkpath(buf)) goto edd_error;
+ 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