Commit 1c0c5a45 authored by Carlos Garnacho's avatar Carlos Garnacho

tracker-extract: If there is a domain, set watch on it

And exit as soon as the name vanishes. It may safely continue
its operations on the next startup.
parent 3e51f555
......@@ -300,6 +300,15 @@ run_standalone (TrackerConfig *config)
static void
on_domain_vanished (GDBusConnection *connection,
const gchar *name,
gpointer user_data)
GMainLoop *loop = user_data;
g_main_loop_quit (loop);
main (int argc, char *argv[])
......@@ -449,6 +458,13 @@ main (int argc, char *argv[])
/* Main loop */
main_loop = g_main_loop_new (NULL, FALSE);
if (domain_ontology && domain_ontology_name) {
g_bus_watch_name_on_connection (connection, domain_ontology_name,
NULL, on_domain_vanished,
main_loop, NULL);
initialize_signal_handler ();
g_main_loop_run (main_loop);
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