From: Christian Hofstaedtler Date: Thu, 2 Dec 2010 17:35:24 +0000 (+0100) Subject: only warn if running as root when starting X X-Git-Tag: v0.6.2~2 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=72c7d74dd72fa809befc2c7b111e0b27869d9c20;p=grml-x.git only warn if running as root when starting X --- diff --git a/grml-x b/grml-x index 9944737..024b41f 100755 --- a/grml-x +++ b/grml-x @@ -144,7 +144,7 @@ def main(): (options, args) = parser.parse_args() bootparams = build_bootparams() - if os.getuid() == 0: + if os.getuid() == 0 and options.start_server: print "W: running as root is unsupported and may not work." time.sleep(1)