ignore spaces when scanning xinitrc for the wm
authorChristian Hofstaedtler <ch@grml.org>
Mon, 14 Feb 2011 20:01:33 +0000 (21:01 +0100)
committerChristian Hofstaedtler <ch@grml.org>
Mon, 14 Feb 2011 20:01:33 +0000 (21:01 +0100)
[Closes: issue964]

grml-x

diff --git a/grml-x b/grml-x
index 270f8b6..d3d225c 100755 (executable)
--- a/grml-x
+++ b/grml-x
@@ -198,7 +198,7 @@ def main():
         f.close()
         f = open(xinitrc, 'w')
         for line in lines:
-            if line.startswith('exec '): line = wm_exec
+            if line.strip().startswith('exec '): line = wm_exec
             f.write(line)
         os.fchmod(f.fileno(), 0750)
         f.close()