escape " in sound playing
This commit is contained in:
parent
caf4f12492
commit
f9d3d37c46
1 changed files with 1 additions and 0 deletions
|
@ -258,6 +258,7 @@ def play_sound(event):
|
||||||
return
|
return
|
||||||
player = gajim.config.get('soundplayer')
|
player = gajim.config.get('soundplayer')
|
||||||
# we add the path in "" so we have good parsing from shell
|
# 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 + '" &'
|
command = player + ' "' + path_to_soundfile + '" &'
|
||||||
#FIXME: when we require 2.4+ use subprocess module
|
#FIXME: when we require 2.4+ use subprocess module
|
||||||
os.system(command)
|
os.system(command)
|
||||||
|
|
Loading…
Add table
Reference in a new issue