debug('Could not set wallpaper. Returned "%s"' % ret)
debug('About to sleep for "%d" seconds' % self.cycle_time, DEBUG_LEVEL_LOW)
self.callbackObj = self.socketHandler.addCallback(self.cycle_time, self.cycle_next)
+ self.filelist.doStoreCache(CACHE_LOCATION)
return ret
def cycle_prev(self):
debug('About to sleep for "%d" seconds' % self.cycle_time, DEBUG_LEVEL_LOW)
# Yes this is ment to be cycle_next
self.callbackObj = self.socketHandler.addCallback(self.cycle_time, self.cycle_next)
+ self.filelist.doStoreCache(CACHE_LOCATION)
return ret
def _finished(self):
def _cmd_RESCAN(self):
self.parent.filelist.doScanPaths()
self._cmd_NEXT()
+ def _cmd_RELOAD(self):
+ self._removeOldTimer()
+ self.parent.cycle_reload()
def _processLine(self, line):
prefix, cmd = line.split(None, 1)
if prefix != 'CMD':
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: