From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] do not overwrite xauthority and display with empty values
Date: Wed, 22 Apr 2009 19:04:57 +0100 [thread overview]
Message-ID: <49EF5C49.7080900@eu.citrix.com> (raw)
Display and xauthority vars are read from vmConfig['platform'] first,
then they are read again from dev_info.
However if the user does not set those variable in the config file,
dev_info won't contain them, hence we are going to overwrite the current
significant values with null.
This patch fixes the problem setting display and xauthority to the
current values if dev_info does not contain them.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
diff -r 286683c42fa0 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Wed Apr 22 18:16:40 2009 +0100
+++ b/tools/python/xen/xend/image.py Wed Apr 22 18:51:12 2009 +0100
@@ -291,8 +291,8 @@
if int(dev_info.get('sdl', 0)) != 0 :
has_sdl = True
if has_sdl:
- self.display = dev_info.get('display', {})
- self.xauthority = dev_info.get('xauthority', {})
+ self.display = dev_info.get('display', self.display)
+ self.xauthority = dev_info.get('xauthority', self.xauthority)
opengl = int(dev_info.get('opengl', opengl))
if has_vnc:
vnc_config = dev_info.get('other_config', {})
reply other threads:[~2009-04-22 18:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49EF5C49.7080900@eu.citrix.com \
--to=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.