summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-05-08 18:06:35 +0200
committerAnton Khirnov <anton@khirnov.net>2022-05-08 18:06:35 +0200
commitcb36f43beb2ef07b9af243a16333b27a4f8067a2 (patch)
treea32fbdec9a76c10babcc6853d12bf1238ddc156a
parenta379dd48992bebf70b8dc36d754c2268772dc1a3 (diff)
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.
-rw-r--r--alot/commands/globals.py2
1 files changed, 1 insertions, 1 deletions
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: