Commit b8ce2eab authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

tracker: Skip "miners" found at runtime but not listed

If "tracker3 status" is run while tracker-extract-3 is running, it
looks enough of a miner to poke at it, but we get:

(tracker status:53148): Tracker-CRITICAL **: 12:26:14.447: No D-Bus proxy found for miner 'org.freedesktop.Tracker3.Miner.Extract'

Since the service is not listed in our special directory. Make
TrackerMinerManager skip over unlisted matches, so we don't issue
this warning.

However, might be nice to carry the status/timing information from
tracker-extract-3 to "tracker3 status". Probably carried over by
tracker-miner-fs-3.
parent ddb70910
......@@ -701,10 +701,26 @@ tracker_miner_manager_get_running (TrackerMinerManager *manager)
g_variant_get (v, "(as)", &iter);
while (g_variant_iter_loop (iter, "&s", &str)) {
gboolean available = FALSE;
GList *l;
if (!g_str_has_prefix (str, prefix)) {
continue;
}
/* Skip unlisted miners */
for (l = priv->miners; l; l = l->next) {
MinerData *data = l->data;
if (g_strcmp0 (data->dbus_name, str) == 0) {
available = TRUE;
break;
}
}
if (!available)
continue;
list = g_slist_prepend (list, g_strdup (str));
}
......
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