Fix process communication
authorRalf Jung <post@ralfj.de>
Wed, 17 Oct 2012 14:11:01 +0000 (16:11 +0200)
committerRalf Jung <post@ralfj.de>
Wed, 17 Oct 2012 14:11:01 +0000 (16:11 +0200)
gui.py

diff --git a/gui.py b/gui.py
index 7c9979d86fdf61905b1f601dbb556b2d7c9de1cd..83099e884b0bbd50cef5700fd26f6da5d4902f96 100644 (file)
--- a/gui.py
+++ b/gui.py
@@ -33,7 +33,7 @@ def error(message):
        if qt_available:
                QtGui.QMessageBox.critical(None, 'Fatal error', message)
        else:
        if qt_available:
                QtGui.QMessageBox.critical(None, 'Fatal error', message)
        else:
-               subprocess.Popen(["zenity", "--error", "--text="+message], stdout=subprocess.PIPE)
+               subprocess.check_call(["zenity", "--error", "--text="+message])
 
 def setup(internalResolutions, externalResolutions):
        '''Returns a ScreenSetup instance, or None if the user canceled'''
 
 def setup(internalResolutions, externalResolutions):
        '''Returns a ScreenSetup instance, or None if the user canceled'''