[sabayon] bgo#576440 - Don't crash if XAUTHLOCALHOSTNAME is not set
- From: Federico Mena Quintero <federico src gnome org>
- To: svn-commits-list gnome org
- Subject: [sabayon] bgo#576440 - Don't crash if XAUTHLOCALHOSTNAME is not set
- Date: Thu, 16 Apr 2009 17:04:27 -0400 (EDT)
commit 6225a0c8f6180fde80c37b4df2d3c37fd005e14c
Author: Tomas Bzatek <tbzatek redhat com>
Date: Thu Apr 16 15:42:04 2009 -0500
bgo#576440 - Don't crash if XAUTHLOCALHOSTNAME is not set
Signed-off-by: Federico Mena Quintero <federico novell com>
---
admin-tool/profilesdialog.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/admin-tool/profilesdialog.py b/admin-tool/profilesdialog.py
index 3686af0..873be2b 100755
--- a/admin-tool/profilesdialog.py
+++ b/admin-tool/profilesdialog.py
@@ -184,7 +184,9 @@ class Session (gobject.GObject):
if self.temp_xauth_path:
new_environ.append ("XAUTHORITY=%s" % self.temp_xauth_path)
- new_environ.append ("XAUTHLOCALHOSTNAME=%s" % os.environ["XAUTHLOCALHOSTNAME"])
+
+ if os.environ.has_key ("XAUTHLOCALHOSTNAME"):
+ new_environ.append ("XAUTHLOCALHOSTNAME=%s" % os.environ["XAUTHLOCALHOSTNAME"])
return new_environ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]