From: Christian Hofstaedtler Date: Mon, 14 Feb 2011 20:01:33 +0000 (+0100) Subject: ignore spaces when scanning xinitrc for the wm X-Git-Tag: v0.6.5~1 X-Git-Url: http://git.grml.org/?p=grml-x.git;a=commitdiff_plain;h=096d5d26a7cec401b966d920544f21110cc950e1 ignore spaces when scanning xinitrc for the wm [Closes: issue964] --- diff --git a/grml-x b/grml-x index 270f8b6..d3d225c 100755 --- 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()