summaryrefslogtreecommitdiffstats
path: root/xsetup.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-02-13 22:39:31 +0000
committerChris Lumens <clumens@redhat.com>2007-02-13 22:39:31 +0000
commit19a607810a617e9e4e9b05b8aaf1e5e4425c9e98 (patch)
tree53240d833f081816e4e07728bf73ee241edb4bde /xsetup.py
parent3afbdc8d1db92ea50e277e9d310a40787f44aebc (diff)
downloadanaconda-19a607810a617e9e4e9b05b8aaf1e5e4425c9e98.tar.gz
anaconda-19a607810a617e9e4e9b05b8aaf1e5e4425c9e98.tar.xz
anaconda-19a607810a617e9e4e9b05b8aaf1e5e4425c9e98.zip
Don't traceback if there's no ksdata.
Diffstat (limited to 'xsetup.py')
-rw-r--r--xsetup.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/xsetup.py b/xsetup.py
index 142fd64f5..d4ae89854 100644
--- a/xsetup.py
+++ b/xsetup.py
@@ -31,12 +31,13 @@ class XSetup:
self.xserver.mousehw = mouse
self.xserver.generateConfig()
- res = self.anaconda.id.ksdata.xconfig.resolution
+ if self.anaconda.isKickstart:
+ res = self.anaconda.id.ksdata.xconfig.resolution
- if self.anaconda.isKickstart and res:
- import xf86config
- screen = xf86config.getPrimaryScreen(self.xserver.config)
- screen.display[0].modes.insert(xf86config.XF86Mode(res))
+ if res:
+ import xf86config
+ screen = xf86config.getPrimaryScreen(self.xserver.config)
+ screen.display[0].modes.insert(xf86config.XF86Mode(res))
self.xserver.writeConfig(filename=fn+"/xorg.conf")