From a7a2de1d247bb09c2af23f4048a0af6688422ee3 Mon Sep 17 00:00:00 2001 From: fuzzgun Date: Mon, 15 Jul 2013 18:13:21 +0100 Subject: [PATCH] Fixed freeze on Ubuntu --- src/bitmessageqt/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index b2cb2640..e61c351d 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -937,9 +937,13 @@ class MyForm(QtGui.QMainWindow): if 'linux' in sys.platform: # Note: QSound was a nice idea but it didn't work if '.mp3' in soundFilename: - subprocess.call(["gst123", soundFilename]) + subprocess.call(["gst123", soundFilename], + stdin=subprocess.PIPE, + stdout=subprocess.PIPE) else: - subprocess.call(["aplay", soundFilename]) + subprocess.call(["aplay", soundFilename], + stdin=subprocess.PIPE, + stdout=subprocess.PIPE) elif sys.platform[0:3] == 'win': # use winsound on Windows import winsound