Revert "Elm_Main, Elc_Naviframe: Access frame is not shown on title in first page... 36/121536/2
authorShinwoo Kim <cinoo.kim@samsung.com>
Thu, 9 Mar 2017 08:59:00 +0000 (17:59 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 28 Mar 2017 10:57:47 +0000 (03:57 -0700)
This reverts commit c0dfb92230d85898c106f53a8276380997e3bfc7.

Because dbus connection which is created for atspi has improper SMACK label, the _elm_atspi_bridge_init should move to elm_run.
The launchpad prepares elm_win/bg/conformant, so elm_init is called on the launchpad side, but the SMACK label is not proper at this point.
It seems that the elm_run is proper place, because elm_run is called after the SMACK label is changed.

Change-Id: I5e52564c4fcafe97646dedba0e031333ff2fb88c

src/lib/elm_main.c

index d1a9cb6..62ad579 100644 (file)
@@ -332,9 +332,6 @@ elm_init(int    argc,
    system_handlers[1] = ecore_event_handler_add(ECORE_EVENT_LOCALE_CHANGED, _sys_lang_changed, NULL);
    _accessibility_currently_highlighted_obj = NULL;
 
-   if (_elm_config->atspi_mode != ELM_ATSPI_MODE_OFF)
-     _elm_atspi_bridge_init();
-
 //TIZEN_ONLY(20160628):  Add Performance log for cold booting
 #ifdef ENABLE_TTRACE
    traceEnd(TTRACE_TAG_EFL);
@@ -358,7 +355,6 @@ elm_shutdown(void)
    ecore_event_handler_del(system_handlers[1]);
 
    _elm_win_shutdown();
-   _elm_atspi_bridge_shutdown();
 
    while (_elm_win_deferred_free) ecore_main_loop_iterate();
 
@@ -1122,12 +1118,15 @@ elm_quicklaunch_exe_path_get(const char *exe, const char *cwd)
 EAPI void
 elm_run(void)
 {
+   if (_elm_config->atspi_mode != ELM_ATSPI_MODE_OFF)
+     _elm_atspi_bridge_init();
    ecore_main_loop_begin();
 }
 
 EAPI void
 elm_exit(void)
 {
+   _elm_atspi_bridge_shutdown();
    ecore_main_loop_quit();
 
    if (elm_policy_get(ELM_POLICY_EXIT) == ELM_POLICY_EXIT_WINDOWS_DEL)