From 9df5313da414d1b2fbe8ba697ab40c703f02b1ab Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Fri, 22 Dec 2017 23:13:34 +0100 Subject: [PATCH] Remove spurious output from desktop integration --- slides/autopilot/autotest.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/slides/autopilot/autotest.py b/slides/autopilot/autotest.py index cec6171c..351ef859 100755 --- a/slides/autopilot/autotest.py +++ b/slides/autopilot/autotest.py @@ -135,16 +135,16 @@ class Remote(object): def focus_slides(): - subprocess.check_call(["i3-msg", "workspace", "3"]) - subprocess.check_call(["i3-msg", "workspace", "1"]) + subprocess.check_output(["i3-msg", "workspace", "3"]) + subprocess.check_output(["i3-msg", "workspace", "1"]) def focus_terminal(): - subprocess.check_call(["i3-msg", "workspace", "2"]) - subprocess.check_call(["i3-msg", "workspace", "1"]) + subprocess.check_output(["i3-msg", "workspace", "2"]) + subprocess.check_output(["i3-msg", "workspace", "1"]) def focus_browser(): - subprocess.check_call(["i3-msg", "workspace", "4"]) - subprocess.check_call(["i3-msg", "workspace", "1"]) + subprocess.check_output(["i3-msg", "workspace", "4"]) + subprocess.check_output(["i3-msg", "workspace", "1"]) remote = Remote() @@ -392,7 +392,7 @@ while state.next_step < len(actions): ipaddr = re.findall("^\[(.*)\]", screen, re.MULTILINE)[-1] url = data.replace("/node1", "/{}".format(ipaddr)) # This should probably be adapted to run on different OS - subprocess.check_call(["xdg-open", url]) + subprocess.check_output(["xdg-open", url]) focus_browser() if state.interactive: print("Press any key to continue to next step...")