From db422de0d8ad9c8dca3f2c80d657ad83a05bbe1a Mon Sep 17 00:00:00 2001 From: Hyotaek Shim Date: Wed, 7 Aug 2019 13:53:27 +0900 Subject: [PATCH] Change dbus interface of BootingDone Change-Id: I190886647020ea12fe11a337c21d0ba8fda56b1e Signed-off-by: Hyotaek Shim --- src/sdb.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/sdb.c b/src/sdb.c index 42a3bec..b35ebae 100644 --- a/src/sdb.c +++ b/src/sdb.c @@ -1289,10 +1289,9 @@ int should_drop_privileges() { #include -#define DEVICED_BUS "org.tizen.system.deviced" -#define DEVICED_CORE_PATH "/Org/Tizen/System/DeviceD/Core" +#define BOOTING_DONE_PATH "/org/tizen/system" #define BOOTING_DONE_SIGNAL "BootingDone" -#define DEVICED_CORE_INTERFACE "org.tizen.system.deviced.core" +#define BOOTING_DONE_INTERFACE "org.tizen.system.Booting" #define SDBD_BOOT_INFO_FILE "/tmp/sdbd_boot_info" static GMainLoop *g_mainloop; @@ -1361,8 +1360,8 @@ static void *bootdone_cb(void *args) } id = g_dbus_connection_signal_subscribe(connection, - DEVICED_BUS, DEVICED_CORE_INTERFACE, BOOTING_DONE_SIGNAL, - DEVICED_CORE_PATH, NULL, G_DBUS_SIGNAL_FLAGS_NONE, + NULL, BOOTING_DONE_INTERFACE, BOOTING_DONE_SIGNAL, + BOOTING_DONE_PATH, NULL, G_DBUS_SIGNAL_FLAGS_NONE, booting_done_signal_subscriber, NULL, NULL); if (id == 0) { E("failed to subscribe to the booting done signal\n"); -- 2.34.1