- pHandle->client_bus = dbus_g_bus_get(DBUS_BUS_SYSTEM, &error);
- if (error) {
- ERR("Couldn't connect to the System bus[%s]", error->message);
- g_error_free(error);
+ dbus_connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
+ if (!dbus_connection) {
+ ERR("Couldn't connect to the System bus");