Commit d4858f9a authored by Marinus Schraal's avatar Marinus Schraal

Remove old query.py and it's last use

parent 98b63d2c
Pipeline #95552 passed with stages
in 11 minutes and 30 seconds
This diff is collapsed.
......@@ -25,11 +25,10 @@
from enum import IntEnum
from gettext import gettext as _
from gi.repository import GObject, Gtk
from gi.repository import GLib, GObject, Gtk, Tracker
from gnomemusic import log
from gnomemusic.albumartcache import Art
from gnomemusic.query import Query
@Gtk.Template(resource_path="/org/gnome/Music/ui/EmptyView.ui")
......@@ -63,8 +62,20 @@ class EmptyView(Gtk.Stack):
def __init__(self):
super().__init__()
# FIXME: This is now duplicated here and in GrlTrackerWrapper.
try:
music_folder = GLib.get_user_special_dir(
GLib.UserDirectory.DIRECTORY_MUSIC)
assert music_folder is not None
except (TypeError, AssertionError):
print("XDG Music dir is not set")
return
music_folder = Tracker.sparql_escape_string(
GLib.filename_to_uri(music_folder))
href_text = "<a href='{}'>{}</a>".format(
Query.MUSIC_URI, _("Music folder"))
music_folder, _("Music folder"))
# TRANSLATORS: This is a label to display a link to open user's music
# folder. {} will be replaced with the translated text 'Music folder'
......
......@@ -21,7 +21,6 @@ gnomemusic/grilowrappers/grltrackerplaylist.py
gnomemusic/gstplayer.py
gnomemusic/inhibitsuspend.py
gnomemusic/mpris.py
gnomemusic/query.py
gnomemusic/utils.py
gnomemusic/views/albumsview.py
gnomemusic/views/artistsview.py
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment