diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2018-11-28 12:59:40 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2018-11-29 18:00:36 +0900 |
commit | 29acd52b9f3697825ef69d8ce5fcf3e25f844ee4 (patch) | |
tree | 8e99b47ea83dd4e95456b8084b0810c712dbb674 | |
parent | 51d9d0935686707d2686d4de920570c9460fd460 (diff) | |
download | app-core-29acd52b9f3697825ef69d8ce5fcf3e25f844ee4.tar.gz app-core-29acd52b9f3697825ef69d8ce5fcf3e25f844ee4.tar.bz2 app-core-29acd52b9f3697825ef69d8ce5fcf3e25f844ee4.zip |
Postpone vc elm initialization
Change-Id: I5919907076d53f57831b41740862491881b24531
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | src/efl_base/appcore_efl_base.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/efl_base/appcore_efl_base.c b/src/efl_base/appcore_efl_base.c index b8880ea..0722868 100644 --- a/src/efl_base/appcore_efl_base.c +++ b/src/efl_base/appcore_efl_base.c @@ -20,6 +20,7 @@ #include <stdlib.h> #include <stdbool.h> #include <dlfcn.h> +#include <glib.h> #include <Elementary.h> #include <vconf.h> @@ -141,6 +142,14 @@ static void __vc_elm_finish(void) } } +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; @@ -164,15 +173,13 @@ static void __efl_app_init(int argc, char **argv, void *data) } } - /* 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(); |