escape " in sound playing

This commit is contained in:
Nikos Kouremenos 2005-08-14 19:27:58 +00:00
parent caf4f12492
commit f9d3d37c46
1 changed files with 1 additions and 0 deletions

View File

@ -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)