summaryrefslogtreecommitdiffstats
path: root/xsetup.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-02-03 22:58:03 +0000
committerMike Fulbright <msf@redhat.com>2003-02-03 22:58:03 +0000
commitfdf0b120f9677a1debf8135d1200148d34f3609a (patch)
tree8f08badf1bf29c9e83d55ad3aa97d0f9efb35e98 /xsetup.py
parent6ef78eccdd54854b16d44c05af359526b49d95be (diff)
downloadanaconda-fdf0b120f9677a1debf8135d1200148d34f3609a.tar.gz
anaconda-fdf0b120f9677a1debf8135d1200148d34f3609a.tar.xz
anaconda-fdf0b120f9677a1debf8135d1200148d34f3609a.zip
"fix" for bug #81869 - man the X stuff needs rewriting
Diffstat (limited to 'xsetup.py')
-rw-r--r--xsetup.py24
1 files changed, 22 insertions, 2 deletions
diff --git a/xsetup.py b/xsetup.py
index 6249240cd..bd934b9bf 100644
--- a/xsetup.py
+++ b/xsetup.py
@@ -17,6 +17,8 @@
# should probably go in rhpl
#
import rhpl.xserver as xserver
+from rhpl.translate import _
+
import string
class XSetup:
@@ -36,10 +38,28 @@ class XSetup:
# always turn dri on
#
self.xhwstate.set_dri_enabled(1)
-
+
+ #
+ # XXX - cleanup monitor name to not include 'DDC Probed Monitor'
+ # in its string if its there.
+ #
+ # This is around for legacy reasons. The monitor description
+ # string passed around inside anaconda includes this prefix
+ # so that the UI can properly display the monitor as a DDC
+ # probed value versus a user selected value.
+ #
+ monname = self.xhwstate.get_monitor_name()
+ if monname is not None:
+ ddc_monitor_string = _("DDC Probed Monitor")
+ if monname[:len(ddc_monitor_string)] == ddc_monitor_string:
+ self.xhwstate.set_monitor_name(monname[len(ddc_monitor_string)+3:])
+
outfile = fn + "/XF86Config"
xserver.writeXConfig(outfile, self.xhwstate, mouse, keyboard,
- standalone = 0)
+ standalone = 0)
+
+ # restore monitor name
+ self.xhwstate.set_monitor_name(monname)
def writeKS(self, f, desktop=None):
if self.skipx: