entry: init eldbus before using eldbus 72/125472/1
authorShinwoo Kim <cinoo.kim@samsung.com>
Mon, 17 Apr 2017 10:21:24 +0000 (19:21 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Mon, 17 Apr 2017 10:21:24 +0000 (19:21 +0900)
It is possilbe to make dbus connection without eldbus_init.
In this case it is possilbe to make UNWANTED eldbus_shutdown work.
If a connection remains while eldbus_shutdown, then the eldbus complains with
CRItical message causing abort.

Change-Id: I11c341e896242074c00290dee25ffc32a0c6dc6b

src/lib/elm_entry.c

index ea989c064ab644decfaba1d4b378f2b00e7f6787..165b59c59a9c4353562831c76185a942c9dcea1a 100644 (file)
@@ -170,6 +170,7 @@ _cbhm_eldbus_init(Evas_Object *obj)
 
    if (!sd->cbhm_proxy)
      {
+        elm_need_eldbus();
         sd->cbhm_conn = eldbus_connection_get(ELDBUS_CONNECTION_TYPE_SESSION);
         eldbus_obj = eldbus_object_get(sd->cbhm_conn, CBHM_DBUS_INTERFACE, CBHM_DBUS_OBJPATH);
         sd->cbhm_proxy = eldbus_proxy_get(eldbus_obj, CBHM_DBUS_INTERFACE);