Commit 307f823e authored by Philip Van Hoof's avatar Philip Van Hoof Committed by Martyn Russell

tracker-writeback: Don't own the DBus name before registering the object

Fixes NB#286589.
parent b512bc25
......@@ -744,14 +744,6 @@ tracker_controller_dbus_start (TrackerController *controller,
g_message (" Path:'" TRACKER_WRITEBACK_PATH "'");
g_message (" Object Type:'%s'", G_OBJECT_TYPE_NAME (controller));
priv->bus_name_id =
g_bus_own_name_on_connection (priv->d_connection,
TRACKER_WRITEBACK_SERVICE,
G_BUS_NAME_OWNER_FLAGS_NONE,
bus_name_acquired_cb,
bus_name_vanished_cb,
controller, NULL);
priv->registration_id =
g_dbus_connection_register_object (priv->d_connection,
TRACKER_WRITEBACK_PATH,
......@@ -766,6 +758,14 @@ tracker_controller_dbus_start (TrackerController *controller,
return FALSE;
}
priv->bus_name_id =
g_bus_own_name_on_connection (priv->d_connection,
TRACKER_WRITEBACK_SERVICE,
G_BUS_NAME_OWNER_FLAGS_NONE,
bus_name_acquired_cb,
bus_name_vanished_cb,
controller, NULL);
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment