From f9d3d37c46e5728fd8c02996929d6d2aec7ff07d Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 14 Aug 2005 19:27:58 +0000 Subject: [PATCH] escape " in sound playing --- src/common/helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/helpers.py b/src/common/helpers.py index be990b14d..f1277ec32 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -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)