def handle_accept(self):
conn, addr = self.accept()
Server(self.cycler, conn, addr)
+
+ def writable(self):
+ return False
def do_server(options, paths):
parser.add_option("--folder-random",
action="store_true", dest="folder_random", default=False,
help="Give each folder an equal chance of having an image selected from it")
+ parser.add_option("--convert",
+ action="store_true", dest="convert", default=False,
+ help="Do conversions using ImageMagick or PIL, don't rely on the window manager")
parser.add_option("--cycle-time",
action="store", type="int", default=1800, dest="cycle_time",
help="Cause the image to cycle every X seconds")
parser.add_option("--socket",
- action="store", type="string", dest="socket_filename", default=os.path.expanduser('~/tmp/tmp_socket'),
+ action="store", type="string", dest="socket_filename", default=os.path.expanduser('~/.randombg_socket'),
help="Location of the command/control socket.")
parser.add_option("--history-file",
action="store", type="string", dest="history_filename", default=os.path.expanduser('~/.randombg_historyfile'),