X-Git-Url: https://code.delx.au/bg-scripts/blobdiff_plain/f79fa59d8e004dd7e12163110ae3052e8ef98eaf..ca96b32295cd38cdb4a150c1111159cbc9c77f2f:/lib/WallChanger.py diff --git a/lib/WallChanger.py b/lib/WallChanger.py index 1fb3e82..147518b 100644 --- a/lib/WallChanger.py +++ b/lib/WallChanger.py @@ -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: