[gnome-music/wip/jfelder/debug-print-xdg-music-dir: 2/2] coregrilo: Add a debug message to display xdg music dir




commit f483e9146842207c8ae4d80f3f695b26b5e777b4
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Jul 29 13:35:32 2021 +0200

    coregrilo: Add a debug message to display xdg music dir
    
    This should help solve issues faced by some users when no song is
    found by Tracker.

 gnomemusic/coregrilo.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index d3f9b4e0e..99368882f 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -154,6 +154,9 @@ class CoreGrilo(GObject.GObject):
                 source, self._application, self._tracker_wrapper)
             self._wrappers[source.props.source_id] = new_wrapper
             self._log.debug("Adding wrapper {}".format(new_wrapper))
+            music_dir = GLib.get_user_special_dir(
+                GLib.UserDirectory.DIRECTORY_MUSIC)
+            self._log.debug("XDG Music dir is: {}".format(music_dir))
         elif (source.props.source_id not in self._search_wrappers.keys()
                 and source.props.source_id not in self._wrappers.keys()
                 and source.props.source_id != "grl-tracker3-source"


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