From 5a42905ca01140d2d2276d4fcbb5bf90c84c1161 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 4 Oct 2012 06:24:09 -0400 Subject: [PATCH] Remove confusion-causing messages. --- filter-test.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/filter-test.py b/filter-test.py index b5aaf77..ae91127 100755 --- a/filter-test.py +++ b/filter-test.py @@ -24,10 +24,7 @@ ps = subprocess.Popen("ps -U %s uh" % os.getenv("LOGNAME"), data = ps.stdout.read() irkerd_count = len([x for x in data.split("\n") if x.find("irkerd") != -1]) -if irkerd_count: - print "Using running irkerd..." -else: - print "Launching new irkerd..." +if not irkerd_count: os.system("gnome-terminal --title 'irkerd' -e 'irkerd -d 2' &") time.sleep(0.1) # Avoid a race condition -- 2.26.2