[rhythmbox] sendto: properly quote arguments to nautilus-sendto
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] sendto: properly quote arguments to nautilus-sendto
- Date: Sun, 3 Aug 2014 09:28:34 +0000 (UTC)
commit a55a46c5cd355773c33756b15ae0f4b0f312026f
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Aug 3 19:28:08 2014 +1000
sendto: properly quote arguments to nautilus-sendto
https://bugzilla.gnome.org/show_bug.cgi?id=702885
plugins/sendto/sendto.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/sendto/sendto.py b/plugins/sendto/sendto.py
index 76d1aed..e404939 100644
--- a/plugins/sendto/sendto.py
+++ b/plugins/sendto/sendto.py
@@ -28,6 +28,7 @@ import rb
from gi.repository import Gio, GObject, GLib, Peas
from gi.repository import RB
+import shlex
import gettext
gettext.install('rhythmbox', RB.locale_dir())
@@ -71,5 +72,5 @@ class SendToPlugin (GObject.Object, Peas.Activatable):
return
entries = page.get_entry_view().get_selected_entries()
- cmdline = 'nautilus-sendto ' + " ".join(entry.get_playback_uri() for entry in entries)
+ cmdline = 'nautilus-sendto ' + " ".join(shlex.quote(entry.get_playback_uri()) for entry in
entries)
GLib.spawn_command_line_async(cmdline)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]