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



commit ac2029c5169ad04b9f2c51cccf86b7f746a265f4
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 | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index a72aebba..b3e4f4c5 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -95,6 +95,10 @@ 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]