X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fui_base%2Fappcore_ui_base.c;h=8872ac4edf395e25e95040a61bf4fef7501994f5;hb=3a98ffb5b68c83871880ea90c7afc262d235e735;hp=8a031888fd9756a3403a52308ce9c91bfa3f2cae;hpb=ad5a33289ee9d6e7f2be9353334c43557cc4d195;p=platform%2Fcore%2Fappfw%2Fapp-core.git diff --git a/src/ui_base/appcore_ui_base.c b/src/ui_base/appcore_ui_base.c index 8a03188..8872ac4 100644 --- a/src/ui_base/appcore_ui_base.c +++ b/src/ui_base/appcore_ui_base.c @@ -43,6 +43,8 @@ #include #include #include +#include +#include #include "appcore_base.h" #include "appcore_ui_base.h" @@ -685,6 +687,8 @@ EXPORT_API int appcore_ui_base_init(appcore_ui_base_ops ops, int argc, char **ar const char *bg_launch; bundle *b; char appid[PATH_MAX] = {0, }; + int r; + bool is_vc_vt_automode = false; appcore_ui_plugin_init(&ops, &hint); aul_app_get_appid_bypid(getpid(), appid, sizeof(appid)); @@ -699,6 +703,16 @@ EXPORT_API int appcore_ui_base_init(appcore_ui_base_ops ops, int argc, char **ar LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:main:done]", appid); elm_init(argc, argv); + r = vc_elm_is_supported_vt_auto(&is_vc_vt_automode); + if (r != 0) { + _ERR("[VC] Fail to get vconfkey of vt_automode"); + } else { + if (is_vc_vt_automode == true) { + vc_elm_initialize(); + vc_elm_set_auto_register_mode(2, 0); + } + } + if (__context.hint & APPCORE_UI_BASE_HINT_HW_ACC_CONTROL) { hwacc = getenv("HWACC"); @@ -731,6 +745,9 @@ EXPORT_API int appcore_ui_base_init(appcore_ui_base_ops ops, int argc, char **ar EXPORT_API void appcore_ui_base_fini(void) { + bool is_vc_vt_automode = false; + int r; + appcore_base_fini(); appcore_ui_plugin_fini(); @@ -744,6 +761,15 @@ EXPORT_API void appcore_ui_base_fini(void) ecore_event_handler_del(__context.hlower); __finish_wl(); + + r = vc_elm_is_supported_vt_auto(&is_vc_vt_automode); + if (r != 0) { + _ERR("[VC] Fail to get vconfkey of vt_automode"); + } else { + if (is_vc_vt_automode == true) + vc_elm_deinitialize(); + } + elm_shutdown(); /* Check loader case */