[tracker-miners/wip/carlosg/tracker-3.0-api-breaks: 37/57] tracker-miner-rss: Make --add-feed connect to rss miner endpoint



commit 0176bec65742b9cb88da19ce28ad69e6098f719f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Dec 31 01:49:59 2019 +0100

    tracker-miner-rss: Make --add-feed connect to rss miner endpoint
    
    This is meant to be called from the command line while the RSS miner
    service/endpoint is running, connect to it in order to create the
    new feed.

 src/miners/rss/tracker-main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/miners/rss/tracker-main.c b/src/miners/rss/tracker-main.c
index d5f0cebc0..1738ed628 100644
--- a/src/miners/rss/tracker-main.c
+++ b/src/miners/rss/tracker-main.c
@@ -152,7 +152,8 @@ main (int argc, char **argv)
                         title,
                         add_feed);
 
-               connection = tracker_sparql_connection_get (NULL, &error);
+               connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker1.Miner.RSS",
+                                                               NULL, &error);
 
                if (!connection) {
                        g_printerr ("%s: %s\n",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]