]> code.delx.au - bg-scripts/blobdiff - bin/randombg.py
Removed a bunch of hard coded paths (on my old machine)
[bg-scripts] / bin / randombg.py
index 8e57f5452c9ab345991322edf6168a77757a1f89..dad637dcfd93c1f8fbcd89999e49a90521096e79 100755 (executable)
@@ -302,6 +302,9 @@ class Listener(asyncore.dispatcher):
        def handle_accept(self):
                conn, addr = self.accept()
                Server(self.cycler, conn, addr)
+       
+       def writable(self):
+               return False
                
 
 def do_server(options, paths):
@@ -364,11 +367,14 @@ def build_parser():
        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'),