summaryrefslogtreecommitdiffstats
path: root/xsetup.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-08-02 15:40:39 +0000
committerChris Lumens <clumens@redhat.com>2006-08-02 15:40:39 +0000
commitebf6bfad147a1ae3e9630695be0e79cd9ea1a3aa (patch)
tree519cfd56f03fd808d1ef29870a3fb968f24cba8d /xsetup.py
parentc42d5b31ff180db6afcbc0c728da8997298b5b67 (diff)
downloadanaconda-ebf6bfad147a1ae3e9630695be0e79cd9ea1a3aa.tar.gz
anaconda-ebf6bfad147a1ae3e9630695be0e79cd9ea1a3aa.tar.xz
anaconda-ebf6bfad147a1ae3e9630695be0e79cd9ea1a3aa.zip
Fix string concat traceback (#201047).
Diffstat (limited to 'xsetup.py')
-rw-r--r--xsetup.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/xsetup.py b/xsetup.py
index 2d6d71b74..cbe72c82d 100644
--- a/xsetup.py
+++ b/xsetup.py
@@ -48,20 +48,13 @@ class XSetup:
if desktop:
rl = desktop.getDefaultRunLevel()
if rl and str(rl) == '5':
- args = args + ['--startxonboot', '']
+ args = args + ['--startxonboot']
gui = desktop.getDefaultDesktop()
if gui:
args = args + ['--defaultdesktop', string.lower(gui)]
- f.write("xconfig")
- for arg in args:
- f.write(" " + arg)
- f.write("\n")
-
- f.write("monitor")
- for arg in self.getMonitorArgList():
- f.write(" " + arg)
- f.write("\n")
+ f.write("xconfig %s\n" % string.join(args, " "))
+ f.write("monitor %s\n" % string.join(self.getMonitorArgList(), " ")
def getMonitorArgList(self):
args = []