Skip to content
Snippets Groups Projects
Commit f9d3d37c authored by nkour's avatar nkour
Browse files

escape " in sound playing

parent caf4f124
No related branches found
No related tags found
No related merge requests found
......@@ -258,6 +258,7 @@ def play_sound(event):
return
player = gajim.config.get('soundplayer')
# we add the path in "" so we have good parsing from shell
path_to_soundfile = path_to_soundfile.replace('"', '\\"') # escape "
command = player + ' "' + path_to_soundfile + '" &'
#FIXME: when we require 2.4+ use subprocess module
os.system(command)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment