Fix process communication
[lilass.git] / 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:
-               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'''