Commit 692ceecb authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

tracker3: Listen to notifications from tracker-miner-fs

This should be added explicitly, just in case the connection is local
(and thus does not listen to events from tracker-miner-fs bus name by
parent 000e0ed8
......@@ -174,9 +174,19 @@ static void
grl_tracker_source_notify_constructed (GObject *object)
GrlTrackerSourceNotify *self = GRL_TRACKER_SOURCE_NOTIFY (object);
GDBusConnection *bus_connection;
self->notifier =
tracker_sparql_connection_create_notifier (self->connection);
bus_connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);
tracker_notifier_signal_subscribe (self->notifier,
g_object_unref (bus_connection);
self->events_signal_id =
g_signal_connect_swapped (self->notifier, "events",
G_CALLBACK (notifier_event_cb), object);
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