Blame SOURCES/virt-manager-use-DISPLAY-in-the-error-message-only-w.patch

343f27
From 797686075a4841ec0ca022d71a3e9f3ac4d07064 Mon Sep 17 00:00:00 2001
343f27
From: Giuseppe Scrivano <gscrivan@redhat.com>
343f27
Date: Fri, 3 Jan 2014 12:27:59 +0100
343f27
Subject: [RHEL-7.0 virt-manager PATCH] virt-manager: use DISPLAY in the error
343f27
 message only when it is set
343f27
343f27
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1038496
343f27
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
343f27
(cherry picked from commit 0724f1cdaa6c66aed5c32c94dc3c8ae1d8eb68e3)
343f27
---
343f27
 virt-manager | 2 +-
343f27
 1 file changed, 1 insertion(+), 1 deletion(-)
343f27
343f27
diff --git a/virt-manager b/virt-manager
343f27
index 55cc30a..4c26524 100755
343f27
--- a/virt-manager
343f27
+++ b/virt-manager
343f27
@@ -241,7 +241,7 @@ def main():
343f27
         # it avoids the issue
343f27
         display = os.environ.get("DISPLAY", "")
343f27
         msg = str(e)
343f27
-        if not display:
343f27
+        if display:
343f27
             msg += ": Could not open display: %s" % display
343f27
         logging.debug("".join(traceback.format_exc()))
343f27
         print msg
343f27
-- 
343f27
1.8.5.2
343f27