# HG changeset patch # User kaf24@firebug.cl.cam.ac.uk # Date 1130837485 -3600 # Node ID a48ac90f99f19797742b370631d7763d74e1b9b8 # Parent f1b6dd997716d28ea40d201450c1d29c80eb58fc Fix the DISPLAY configration that breaks vmx domain creation with SDL on vncserver or remote X. Changeset 7547 added a test of opts.vals.display when getenv("DISPLAY"); because there is a default value:localhost:0, that causes the test always to be true. Signed-off-by: Xiaofeng Ling diff -r f1b6dd997716 -r a48ac90f99f1 tools/python/xen/xm/create.py --- a/tools/python/xen/xm/create.py Tue Nov 01 10:28:41 2005 +0100 +++ b/tools/python/xen/xm/create.py Tue Nov 01 10:31:25 2005 +0100 @@ -376,7 +376,7 @@ gopts.var('sdl', val='', use="""Should the device model use SDL?""") gopts.var('display', val='DISPLAY', - fn=set_value, default='localhost:0', + fn=set_value, default=None, use="X11 display to use")