]> code.delx.au - bg-scripts/blobdiff - lib/WallChanger.py
Various bug fixes.
[bg-scripts] / lib / WallChanger.py
index 1fb3e82f587de93ff9b181186391ce05a66e93b3..147518bc468d002ccde58b120737c0c0074b063c 100644 (file)
@@ -22,7 +22,7 @@ def RandomBG(*args, **kwargs):
        if commands.getstatusoutput("ps ax -o command -c|grep -q WindowServer")[0] == 0:
                ret = __OSXChanger(*args, **kwargs)
 
-       if 'DISPLAY' not in os.environ:
+       if 'DISPLAY' not in os.environ or os.environ['DISPLAY'].startswith('/tmp/launch'):
                # X11 is not running
                return ret
        else: