mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
properly escape uris in SongPopover
This commit is contained in:
parent
d4bbba9a2c
commit
1f6b63cb8c
@ -1388,11 +1388,11 @@ class SongPopover(Gtk.Popover):
|
|||||||
|
|
||||||
def _on_open_button_clicked(self, *args):
|
def _on_open_button_clicked(self, *args):
|
||||||
self.popdown()
|
self.popdown()
|
||||||
path="file://"+self._client.get_absolute_path(self._uri)
|
file=Gio.File.new_for_path(self._client.get_absolute_path(self._uri))
|
||||||
bus=Gio.bus_get_sync(Gio.BusType.SESSION, None)
|
bus=Gio.bus_get_sync(Gio.BusType.SESSION, None)
|
||||||
proxy=Gio.DBusProxy.new_sync(bus, Gio.DBusProxyFlags.NONE, None, "org.freedesktop.FileManager1",
|
proxy=Gio.DBusProxy.new_sync(bus, Gio.DBusProxyFlags.NONE, None, "org.freedesktop.FileManager1",
|
||||||
"/org/freedesktop/FileManager1", "org.freedesktop.FileManager1", None)
|
"/org/freedesktop/FileManager1", "org.freedesktop.FileManager1", None)
|
||||||
proxy.call_sync("ShowItems", GLib.Variant("(ass)", ((path,),"")), Gio.DBusCallFlags.NONE, 500, None)
|
proxy.call_sync("ShowItems", GLib.Variant("(ass)", ((file.get_uri(),),"")), Gio.DBusCallFlags.NONE, 500, None)
|
||||||
|
|
||||||
def _on_button_clicked(self, widget, mode):
|
def _on_button_clicked(self, widget, mode):
|
||||||
self._client.files_to_playlist([self._uri], mode)
|
self._client.files_to_playlist([self._uri], mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user