diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2020-03-08 14:42:51 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2020-04-05 14:37:41 +0200 |
commit | d87d4088612ed7eef70a5ce9fae2f365b6656a19 (patch) | |
tree | 5ef04e15601411177d2abf3506cefd46ecdc7ee9 | |
parent | 8ada6588f17028044ec3929ffeb3bfa46f71da76 (diff) | |
download | tracker-d87d4088612ed7eef70a5ce9fae2f365b6656a19.tar.gz |
utils: Update references to tracker miners' DBus names
It's bumping to org.freedesktop.Tracker3.*
-rw-r--r-- | examples/rss-reader/README | 2 | ||||
-rwxr-xr-x | utils/data-generators/create-tree-from-real-data | 2 | ||||
-rw-r--r-- | utils/mtp/mtp-dummy.c | 2 | ||||
-rw-r--r-- | utils/tracker-resdump/tracker-resdump.vala | 2 | ||||
-rw-r--r-- | utils/trackertestutils/__main__.py | 6 | ||||
-rw-r--r-- | utils/trackertestutils/helpers.py | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/examples/rss-reader/README b/examples/rss-reader/README index 2f86e83ab..83ede92e3 100644 --- a/examples/rss-reader/README +++ b/examples/rss-reader/README @@ -22,7 +22,7 @@ into tracker (using the sparql interface). with -r or remove the DBs, you need to load the file initial-data.ttl. For instance with this command: -dbus-send --print-reply --dest=org.freedesktop.Tracker1 /org/freedesktop/Tracker1/Resources org.freedesktop.Tracker1.Resources.Load string:"/x/y/z/initial-data.ttl" +dbus-send --print-reply --dest=org.freedesktop.Tracker3 /org/freedesktop/Tracker3/Resources org.freedesktop.Tracker3.Resources.Load string:"/x/y/z/initial-data.ttl" or more easily: diff --git a/utils/data-generators/create-tree-from-real-data b/utils/data-generators/create-tree-from-real-data index feb9d3cbb..6fc5a3733 100755 --- a/utils/data-generators/create-tree-from-real-data +++ b/utils/data-generators/create-tree-from-real-data @@ -128,7 +128,7 @@ def main(): rule_map = read_tracker_extract_rules(args.rules_dir) - db = Tracker.SparqlConnection.bus_new("org.freedesktop.Tracker1") + db = Tracker.SparqlConnection.bus_new("org.freedesktop.Tracker3") show_only = (args.output_dir == None) diff --git a/utils/mtp/mtp-dummy.c b/utils/mtp/mtp-dummy.c index 570f5313f..500ad8506 100644 --- a/utils/mtp/mtp-dummy.c +++ b/utils/mtp/mtp-dummy.c @@ -286,7 +286,7 @@ context_init (gint argc, } /* Get connection */ - connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker1", + connection = tracker_sparql_connection_bus_new ("org.freedesktop.Tracker3.Miner.Files", NULL, NULL, &error); if (!connection) { /* Some error happened performing the query, not good */ diff --git a/utils/tracker-resdump/tracker-resdump.vala b/utils/tracker-resdump/tracker-resdump.vala index e6bbb43d0..2f116d12d 100644 --- a/utils/tracker-resdump/tracker-resdump.vala +++ b/utils/tracker-resdump/tracker-resdump.vala @@ -103,7 +103,7 @@ static int main(string[] args) } try { - conn = Connection.bus_new("org.freedesktop.Tracker1", null); + conn = Connection.bus_new("org.freedesktop.Tracker3.Miner.Files", null); } catch (GLib.Error e) { critical("Couldn't connect to Tracker: %s", e.message); return 1; diff --git a/utils/trackertestutils/__main__.py b/utils/trackertestutils/__main__.py index e7b10e8ed..9812ffd2c 100644 --- a/utils/trackertestutils/__main__.py +++ b/utils/trackertestutils/__main__.py @@ -261,8 +261,8 @@ class MinerStatusWatch(): """ def __init__(self, sandbox, miner_name): - self.dbus_name = 'org.freedesktop.Tracker1.Miner.' + miner_name - self.object_path = '/org/freedesktop/Tracker1/Miner/' + miner_name + self.dbus_name = 'org.freedesktop.Tracker3.Miner.' + miner_name + self.object_path = '/org/freedesktop/Tracker3/Miner/' + miner_name self._sandbox = sandbox @@ -280,7 +280,7 @@ class MinerStatusWatch(): self._proxy = Gio.DBusProxy.new_sync( self._sandbox.get_connection(), Gio.DBusProxyFlags.NONE, None, - self.dbus_name, self.object_path, 'org.freedesktop.Tracker1.Miner', + self.dbus_name, self.object_path, 'org.freedesktop.Tracker3.Miner', None) # FIXME: this doesn't appear to work, so we have to use polling. diff --git a/utils/trackertestutils/helpers.py b/utils/trackertestutils/helpers.py index db24b4b9a..737a089fa 100644 --- a/utils/trackertestutils/helpers.py +++ b/utils/trackertestutils/helpers.py @@ -476,7 +476,7 @@ class TrackerDBusSandbox: log.info("Looking for active Tracker processes on the bus") for busname in self.daemon.list_names_sync(): - if busname.startswith('org.freedesktop.Tracker1'): + if busname.startswith('org.freedesktop.Tracker3'): pid = self.daemon.get_connection_unix_process_id_sync(busname) tracker_processes.append(pid) |