[gnome-music/gnome-3-14] query: fix xdg dir var names



commit daa58f6d098238476bf02d371ea916e2303c606b
Author: Pacho Ramos <pachoramos1 gmail com>
Date:   Mon Jan 26 11:30:06 2015 +0100

    query: fix xdg dir var names
    
    In query.py {MUSIC/DOWNLOAD}_URI is defined, while the queries actually use
    {MUSIC/DOWNLOAD}_DIR
    credit to "foser" for reporting in gentoo IRC channel
    
    https://bugzilla.gnome.org/show_bug.cgi?id=743484

 gnomemusic/query.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/query.py b/gnomemusic/query.py
index f872414..a87557d 100644
--- a/gnomemusic/query.py
+++ b/gnomemusic/query.py
@@ -30,14 +30,14 @@ from gi.repository import GLib, Tracker
 
 class Query():
     music_folder = None
-    MUSIC_URI = None
+    MUSIC_DIR = None
     download_folder = None
-    DOWNLOAD_URI = None
+    DOWNLOAD_DIR = None
     try:
         music_folder = GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_MUSIC)
-        MUSIC_URI = Tracker.sparql_escape_string(GLib.filename_to_uri(music_folder))
+        MUSIC_DIR = Tracker.sparql_escape_string(GLib.filename_to_uri(music_folder))
         download_folder = GLib.get_user_special_dir(GLib.UserDirectory.DIRECTORY_DOWNLOAD)
-        DOWNLOAD_URI = Tracker.sparql_escape_string(GLib.filename_to_uri(download_folder))
+        DOWNLOAD_DIR = Tracker.sparql_escape_string(GLib.filename_to_uri(download_folder))
 
     except TypeError:
         print("XDG user dirs are not set")


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