discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=80cc3f230d47bc3f3d049e59adde449694e93b2c

commit 80cc3f230d47bc3f3d049e59adde449694e93b2c
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Feb 7 13:32:08 2018 -0500

    elm: remove ecore-x init from quicklaunch post-fork
    
    this is invalid for basically every possible case. allow components
    to naturally call this function as needed
    
    @fix
---
 src/lib/elementary/elm_main.c | 33 ---------------------------------
 1 file changed, 33 deletions(-)

diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c
index bf753d9313..f588c1e95e 100644
--- a/src/lib/elementary/elm_main.c
+++ b/src/lib/elementary/elm_main.c
@@ -1146,39 +1146,6 @@ elm_quicklaunch_fork(int    argc,
         evas_init();
         _elm_module_init();
         _elm_config_sub_init();
-# ifdef HAVE_ELEMENTARY_X
-          {
-             Eina_Bool init_x;
-             const char *ev = getenv("ELM_DISPLAY");
-             Eina_Bool have_display = !!getenv("DISPLAY");
-
-             if (ev) /* If ELM_DISPLAY is specified */
-               {
-                  if (!strcmp(ev, "x11")) /* and it is X11 */
-                    {
-                       if (!have_display) /* if there is no $DISPLAY */
-                         {
-                            ERR("$ELM_DISPLAY is set to x11 but $DISPLAY"
-                                " is not set");
-                            init_x = EINA_FALSE;
-                         }
-                       else /* if there is */
-                         init_x = EINA_TRUE;
-                    }
-                  else /* not X11 */
-                    init_x = EINA_FALSE;
-               }
-             else /* ELM_DISPLAY not specified */
-               {
-                  if (have_display) /* If there is a $DISPLAY */
-                    init_x = EINA_TRUE;
-                  else /* No $DISPLAY */
-                    init_x = EINA_FALSE;
-               }
-             if (init_x)
-               ecore_x_init(NULL);
-          }
-# endif
         ecore_evas_init(); // FIXME: check errors
         ecore_imf_init();
 #endif

-- 


Reply via email to