1
0
Fork 0

Fix task confirmation

This commit is contained in:
Malte Brandy 2018-06-30 04:27:28 +02:00
parent f6c633c598
commit 019f2afb21
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -25,5 +25,5 @@ while True:
entered_command = rofi.communicate(input=tasklist)[0].decode('utf8').strip()
if entered_command == "":
sys.exit(0)
task_result = subprocess.Popen(["task", "rc.confirmation=no", "default.command=execute \"$HOME/bin/taskfilter\""] + entered_command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
task_result = subprocess.Popen(["task", "rc.confirmation=no", "rc.default.command=execute \"$HOME/bin/taskfilter\""] + entered_command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
lastresult = '\n'.join([task_result[0].decode('utf8'), task_result[1].decode('utf8')]).strip()