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



commit 4cb648c639d7195f50e304b08e6b14fb3468692c
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]