Quoting file URIs moved by drag and drop

When dragging and dropping a podcast into another program, e.g VLC, some
filenames would cause issues (i.e ones with `#`).

Signed-off-by: B Horn <b@horn.uk>
This commit is contained in:
B Horn 2022-09-21 14:18:29 +02:00
parent 83b0aa1c87
commit 4e5168d1ba
No known key found for this signature in database
GPG Key ID: 5D6249998486EE8F
1 changed files with 1 additions and 1 deletions

View File

@ -1015,7 +1015,7 @@ class gPodder(BuilderWidget, dbus.service.Object):
(('text/uri-list', 0, 0),), Gdk.DragAction.COPY)
def drag_data_get(tree, context, selection_data, info, timestamp):
uris = ['file://' + e.local_filename(create=False)
uris = ['file://' + urllib.parse.quote(e.local_filename(create=False))
for e in self.get_selected_episodes()
if e.was_downloaded(and_exists=True)]
selection_data.set_uris(uris)