[gnome-music/wip/jfelder/debug-print-xdg-music-dir] coregrilo: Add a debug message to display xdg music dir
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/debug-print-xdg-music-dir] coregrilo: Add a debug message to display xdg music dir
- Date: Thu, 29 Jul 2021 11:51:37 +0000 (UTC)
commit dfedc7d7a72799350dc7e84a30c62083eed21d0b
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]