[i3] Use Popen instead of call - async call

subprocess.call() blocks until the command finishes - Popen is better
for executing in the background :)
This commit is contained in:
Tobias Witek 2016-11-01 07:58:12 +01:00
parent 579381978e
commit 7c2170f58a

View file

@ -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):