gdbus: Use client service name and not hardcoded org.bluez
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 28 Dec 2012 05:21:16 +0000 (21:21 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 28 Dec 2012 07:59:31 +0000 (23:59 -0800)
gdbus/client.c

index 8b55e5b..8bb525b 100644 (file)
@@ -881,7 +881,7 @@ static void get_managed_objects(GDBusClient *client)
 {
        DBusMessage *msg;
 
-       msg = dbus_message_new_method_call("org.bluez", "/",
+       msg = dbus_message_new_method_call(client->service_name, "/",
                                        DBUS_INTERFACE_DBUS ".ObjectManager",
                                                        "GetManagedObjects");
        if (msg == NULL)