[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] fix vmx domain creation fail with SDL from changset 7547


  • To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Ling, Xiaofeng" <xiaofeng.ling@xxxxxxxxx>
  • Date: Tue, 1 Nov 2005 12:19:23 +0800
  • Delivery-date: Tue, 01 Nov 2005 04:16:32 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcXeh3nx4Rki+hmJQN6ku8bmbt6CCgAEqxdg
  • Thread-topic: [PATCH] fix vmx domain creation fail with SDL from changset 7547

Fix the DISPLAY configration that breaks vmx domain creation with SDL on 
vncserver or remote X.
changeset 7547 add a judgement of opts.vals.display when getenv("DISPLAY"), 
because there is
a default value:localhost:0, that cause the judgement always true.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>

diff -r ea6d9f29dff5 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Mon Oct 31 17:07:14 2005 +0100
+++ b/tools/python/xen/xm/create.py     Tue Nov  1 09:42:31 2005 +0800
@@ -376,7 +376,7 @@
           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")
 
diff -r ea6d9f29dff5 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Mon Oct 31 17:07:14 2005 +0100
+++ b/tools/python/xen/xm/create.py     Tue Nov  1 09:42:31 2005 +0800
@@ -376,7 +376,7 @@
           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")
 
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.