[PATCH] Don't forcibly redirect xrandr output to the tty

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

 



Doing that defeats capturing the output in anaconda.log, which is
exactly what I don't want.

Signed-off-by: Adam Jackson <ajax@xxxxxxxxxx>
---
 anaconda |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/anaconda b/anaconda
index bde63bf..7269099 100755
--- a/anaconda
+++ b/anaconda
@@ -110,14 +110,10 @@ def set_x_resolution(runres):
     if runres and opts.display_mode == 'g' and not flags.usevnc and wm_pid :
         try:
             log.info("Setting the screen resolution to: %s.", runres)
-            iutil.execWithRedirect("xrandr", 
-                                   ["-d", ":1", "-s", runres],
-                                   stdout="/dev/tty5", stderr="/dev/tty5")
+            iutil.execWithRedirect("xrandr", ["-d", ":1", "-s", runres])
         except RuntimeError as e:
-            log.error("The X resolution not set")
-            iutil.execWithRedirect("xrandr",
-                                   ["-d", ":1", "-q"],
-                                   stdout="/dev/tty5", stderr="/dev/tty5")
+            log.error("The X resolution was not set")
+            iutil.execWithRedirect("xrandr", ["-d", ":1", "-q"])
 
 def doShutdownX11Actions():
     global wm_pid
-- 
1.6.6.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux