From 08895e2073988afa414d2ed186ea103c2dfc56f4 Mon Sep 17 00:00:00 2001 From: Pol Van Aubel Date: Tue, 13 Sep 2022 23:33:21 +0200 Subject: [PATCH] Warn about spawn without X11 and hook Don't fail silently. I'd prefer an actual ui notification, but in the init the ui isn't available. --- alot/commands/globals.py | 1 + 1 file changed, 1 insertion(+) diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 007a21f41..d7bb8b6b5 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -230,6 +230,7 @@ def __init__(self, cmd, stdin=None, shell=False, spawn=False, termcmdlist = split_commandstring(term_cmd) cmd = termcmdlist + cmd else: + logging.warning('unable to handle spawn outside of X11 without touch_external_cmdlist hook set') thread = False self.cmdlist = cmd