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-28 13:09:36 +0900 |
commit | 2fc6321e32154da40ff3969a3443e0d444e7778d (patch) | |
tree | 44c12a4edc92dceb4f3a3f255445ce579ce1a07e /src | |
parent | 60c9ef07b73a46e55f8341bcdfd9d079ae4b2d6d (diff) | |
download | app-core-2fc6321e32154da40ff3969a3443e0d444e7778d.tar.gz app-core-2fc6321e32154da40ff3969a3443e0d444e7778d.tar.bz2 app-core-2fc6321e32154da40ff3969a3443e0d444e7778d.zip |
Postpone vc elm initialization
Change-Id: I5919907076d53f57831b41740862491881b24531
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Diffstat (limited to 'src')
-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 676cb71..0e8dde5 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(); |