From 096d5d26a7cec401b966d920544f21110cc950e1 Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Mon, 14 Feb 2011 21:01:33 +0100 Subject: [PATCH] ignore spaces when scanning xinitrc for the wm [Closes: issue964] --- grml-x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.1.4