X-Git-Url: https://code.delx.au/bg-scripts/blobdiff_plain/21cf46831524e2c01959dbf6c18074ba0230847f..b64049cd6170ba24c983a58d9aba18b4c0e95603:/wallchanger.py 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