From 7c2170f58a3336f9521e4f42674ef963f0f501fa Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Tue, 1 Nov 2016 07:58:12 +0100 Subject: [PATCH] [i3] Use Popen instead of call - async call subprocess.call() blocks until the command finishes - Popen is better for executing in the background :) --- bumblebee/outputs/i3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/outputs/i3.py b/bumblebee/outputs/i3.py index 5d77542..9632e0b 100644 --- a/bumblebee/outputs/i3.py +++ b/bumblebee/outputs/i3.py @@ -24,7 +24,7 @@ def read_input(output): instance = event.get("instance", ""), button = event.get("button", -1) ) - subprocess.call(shlex.split(cb), stdout=DEVNULL, stderr=DEVNULL) + subprocess.Popen(shlex.split(cb), stdout=DEVNULL, stderr=DEVNULL) class i3bar(bumblebee.output.Output): def __init__(self, theme):