GNOME Bugzilla – Bug 702885
SendTo plugin does not work with music files containing apostrophes
Last modified: 2014-08-03 09:29:20 UTC
Created attachment 247552 [details] [review] patch -p0 to resolve this bug-report The following error is observed with music files containing apostrophes: dad@dad-VirtualBox:~/.local/share/rhythmbox/plugins/sendto$ rhythmbox Traceback (most recent call last):
+ Trace 232128
GLib.spawn_command_line_async(cmdline)
return info.invoke(*args, **kwargs)
The fix is straightforward - just need to escape the aphostrophe so that the cmd line works correctly. Please find enclosed a diff for the patch
Review of attachment 247552 [details] [review]: ::: plugins/sendto/sendto.py @@ +73,3 @@ entries = page.get_entry_view().get_selected_entries() cmdline = 'nautilus-sendto ' + " ".join(entry.get_playback_uri() for entry in entries) + cmdline = cmdline.replace("'", r"\'") no, this needs to do proper shell escaping with shlex.quote()
fixed properly in commit a55a46c