Looks like 1.5 seconds was enough delay.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 8 Oct 2012 16:47:33 +0000 (12:47 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 8 Oct 2012 16:47:33 +0000 (12:47 -0400)
filter-test.py

index 6298b91bcfe9988d21641845207d89b027089c2a..030d3d4de6c5001c391ac56c150291786db197c2 100755 (executable)
@@ -24,9 +24,9 @@ data = ps.stdout.read()
 irkerd_count = len([x for x in data.split("\n") if x.find("irkerd") != -1])
 
 if irkerd_count:
-    sys.stderr.write("Using a running irker instance...")
+    sys.stderr.write("Using a running irker instance...\n")
 else:
-    sys.stderr.write("Launching a new irker instance...")
+    sys.stderr.write("Launching a new irker instance...\n")
     os.system("gnome-terminal --title 'irkerd' -e 'irkerd -d 2' &")
 
 time.sleep(1.5)        # Avoid a race condition