Add an exception handling about vc elm initialization 56/162656/2
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 5 Dec 2017 00:15:31 +0000 (09:15 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 5 Dec 2017 00:51:32 +0000 (09:51 +0900)
If "VC_ELM_INIT" env exists, the appcore efl base doesn't
initialize vc elm.

Change-Id: Iea500e0e8df490c5514e4254cb2864f97b3181e3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/efl_base/appcore_efl_base.c

index a30c2da..e2fd7c3 100644 (file)
@@ -165,12 +165,14 @@ static void __efl_app_init(int argc, char **argv, void *data)
        }
 
        /* VC voice touch setting */
-       __vc_elm_init();
+       if (!getenv("VC_ELM_INIT"))
+               __vc_elm_init();
 }
 
 static void __efl_app_finish(void)
 {
        __vc_elm_finish();
+       unsetenv("VC_ELM_INIT");
 
        elm_shutdown();