From: Greg Darke Date: Mon, 21 Jul 2008 08:27:11 +0000 (+1000) Subject: Fixed the X11 check for Darwin (it used to find itself in the process listing and... X-Git-Url: https://code.delx.au/bg-scripts/commitdiff_plain/b64049cd6170ba24c983a58d9aba18b4c0e95603 Fixed the X11 check for Darwin (it used to find itself in the process listing and thus always run the tests) --- diff --git a/wallchanger.py b/wallchanger.py index b48775e..6c2ba00 100755 --- a/wallchanger.py +++ b/wallchanger.py @@ -31,7 +31,7 @@ def init(*args, **kwargs): else: if os.uname()[0] == 'Darwin': # Try to detect if the X11 server is running on OSX - if commands.getstatusoutput("ps ax -o command|grep -q '/.*X11 .* %s'" % os.environ['DISPLAY'])[0] != 0: + if commands.getstatusoutput("ps ax -o command|grep -q '^/.*X11 .* %s'" % os.environ['DISPLAY'])[0] != 0: # X11 is not running for this display return