From 169ea351ba25d41a58c6cd8e4b59ba2ccbf7401e Mon Sep 17 00:00:00 2001 From: Manish Mandlik Date: Wed, 2 Dec 2020 19:46:51 -0800 Subject: [PATCH] adv_monitor: Register client app with app-root-path When a client app is registered with g_dbus_client_new(), bluez root path, i.e. "/", is used as the app root path and signal watches are added at that root path. Because of this, InterfacesAdded/InterfacesRemoved signals emitted by app - while creating/removing advertisement monitor objects at the app root path - are not received by bluetoothd. Use g_dbus_client_new_full() to register a client app with the correct app root path. Signed-off-by: Anuj Jain Signed-off-by: Ayush Garg --- src/adv_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adv_monitor.c b/src/adv_monitor.c index 7e1dd05..965668b 100644 --- a/src/adv_monitor.c +++ b/src/adv_monitor.c @@ -774,7 +774,7 @@ static struct adv_monitor_app *app_create(DBusConnection *conn, app->manager = manager; app->reg = NULL; - app->client = g_dbus_client_new(conn, sender, path); + app->client = g_dbus_client_new_full(conn, sender, path, path); if (!app->client) { app_destroy(app); return NULL; -- 2.7.4