#include <stdlib.h>
#include <stdbool.h>
#include <dlfcn.h>
+#include <glib.h>
#include <Elementary.h>
#include <vconf.h>
}
}
+static gboolean __init_vc_elm(gpointer data)
+{
+ /* VC voice touch setting */
+ __vc_elm_init();
+
+ return G_SOURCE_REMOVE;
+}
+
static void __efl_app_init(int argc, char **argv, void *data)
{
int hint;
}
}
- /* VC voice touch setting */
- if (!getenv("VC_ELM_INIT"))
- __vc_elm_init();
+ /* Postpone initialization to improve app launching performance */
+ g_idle_add(__init_vc_elm, NULL);
}
static void __efl_app_finish(void)
{
__vc_elm_finish();
- unsetenv("VC_ELM_INIT");
elm_shutdown();