]> code.delx.au - bg-scripts/blobdiff - wallchanger.py
Fixed a bug where the convert option was not being passed through to the wallchanger
[bg-scripts] / wallchanger.py
index b48775ebfb590a489472117f330a29d119e3f227..6c2ba004c3b14ad0a69b5909c62b7242c899c6ce 100755 (executable)
@@ -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