From 7010b8c92096dbba22cb5a5ce9b16602303896ef Mon Sep 17 00:00:00 2001 From: "Brian j. Hong" Date: Sun, 2 Mar 2014 12:55:29 -0800 Subject: [PATCH] Quick AutoRefresh Fix on Windows quick check to support autorefresh on windows within default app --- cactus/browser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cactus/browser.py b/cactus/browser.py index a14f1fc6..158540a7 100644 --- a/cactus/browser.py +++ b/cactus/browser.py @@ -110,7 +110,10 @@ def browserReloadCSS(url): _insertJavascript(url, s4) def appsRunning(l): - psdata = subprocess.check_output(['ps aux'], shell=True) + if platform.system() == "Windows": + psdata = subprocess.check_output(['tasklist'], shell=True) + else: + psdata = subprocess.check_output(['ps aux'], shell=True) retval = {} for app in l: retval[app] = app in psdata return retval