[gnome-music/wip/carlosg/songeditor-tracker3: 11/11] coregrilo: Specify the private store path to the Grilo plugin



commit d9fc4afb9ab715368ab434294a03323a453f15e5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun May 31 17:42:43 2020 +0200

    coregrilo: Specify the private store path to the Grilo plugin
    
    This will make it possible to query for things that are in the
    private store, in addition to things from the miner-fs service.

 gnomemusic/coregrilo.py | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index a72aebba..07fcc2cc 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -95,6 +95,11 @@ class CoreGrilo(GObject.GObject):
         config.set_api_key(self._acoustid_api_key)
         self._registry.add_config(config)
 
+        config = Grl.Config.new("grl-tracker", "grl-tracker3-source")
+        config.set_string(
+            "store-path", self._tracker_wrapper.cache_directory())
+        self._registry.add_config(config)
+
         self._registry.connect('source-added', self._on_source_added)
         self._registry.connect('source-removed', self._on_source_removed)
 


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