#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
+#include <sys/time.h>
+#include <sys/resource.h>
#include <Eina.h>
#include <Eet.h>
}
extra_dirs = eina_list_sort(extra_dirs, -1, EINA_COMPARE_CB(strcmp));
+ setpriority(PRIO_PROCESS, 0, 19);
/* init external subsystems */
if (!eet_init()) goto eet_error;
if (!ecore_init()) goto ecore_error;
# include <config.h>
#endif
+#include <sys/time.h>
+#include <sys/resource.h>
+
#include <Ecore.h>
#include <Ecore_File.h>
if (!dbus_init()) goto dbus_error;
if (!cache_init()) goto cache_error;
+ setpriority(PRIO_PROCESS, 0, 19);
ecore_main_loop_begin();
cache_shutdown();
icon_cache_update_cache_cb(void *data EINA_UNUSED)
{
char file[PATH_MAX];
- int prio;
icon_cache_timer = NULL;
if ((!icon_flush) && (!icon_exts)) return ECORE_CALLBACK_CANCEL;
/* TODO: Queue if already running */
- prio = ecore_exe_run_priority_get();
- ecore_exe_run_priority_set(19);
-
snprintf(file, sizeof(file),
"%s/efreet/" MODULE_ARCH "/efreet_icon_cache_create",
eina_prefix_lib_get(pfx));
icon_flush = EINA_FALSE;
icon_cache_exe =
ecore_exe_pipe_run(file, ECORE_EXE_PIPE_READ|ECORE_EXE_PIPE_READ_LINE_BUFFERED, NULL);
- ecore_exe_run_priority_set(prio);
return ECORE_CALLBACK_CANCEL;
}
desktop_cache_update_cache_cb(void *data EINA_UNUSED)
{
char file[PATH_MAX];
- int prio;
desktop_cache_timer = NULL;
return ECORE_CALLBACK_CANCEL;
}
desktop_queue = EINA_FALSE;
- prio = ecore_exe_run_priority_get();
- ecore_exe_run_priority_set(19);
snprintf(file, sizeof(file),
"%s/efreet/" MODULE_ARCH "/efreet_desktop_cache_create",
INF("Run desktop cache creation: %s", file);
desktop_cache_exe =
ecore_exe_pipe_run(file, ECORE_EXE_PIPE_READ|ECORE_EXE_PIPE_READ_LINE_BUFFERED, NULL);
- ecore_exe_run_priority_set(prio);
return ECORE_CALLBACK_CANCEL;
}