From cb36f43beb2ef07b9af243a16333b27a4f8067a2 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 8 May 2022 18:06:35 +0200 Subject: commands/globals:ExternalCommand: actually use thread param from touchhook The value from the hook would currently get overridden by the value provided to the ExternalCommand() constructor. --- alot/commands/globals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 8140db1e..99451539 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -221,7 +221,7 @@ class ExternalCommand(Command): logging.debug('calling hook: touch_external_cmdlist') res = touchhook(cmd, shell=shell, spawn=spawn, thread=thread) logging.debug('got: %s', res) - cmd, shell, self.in_thread = res + cmd, shell, thread = res # otherwise if spawn requested and X11 is running elif spawn: if 'DISPLAY' in os.environ: -- cgit v1.2.3