Commit 0c36f0ff authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

now it will work without DISPLAY environment variable.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15215 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 578ceedc
......@@ -54,7 +54,7 @@ def stopZope():
def runXvfb():
pid = os.spawnlp(os.P_NOWAIT, 'Xvfb', 'Xvfb', ':123')
display = os.environ['DISPLAY']
display = os.environ.get('DISPLAY')
if display:
auth = Popen(['xauth', 'list', display], stdout=PIPE).communicate()[0]
if auth:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment