All of lore.kernel.org
 help / color / mirror / Atom feed
* [oe-core][PATCH 1/1] terminal.py: do not stop searching for auto
@ 2020-05-21 18:41 Joe Slater
  2020-05-21 19:52 ` Randy MacLeod
  0 siblings, 1 reply; 4+ messages in thread
From: Joe Slater @ 2020-05-21 18:41 UTC (permalink / raw)
  To: openembedded-core; +Cc: joe.slater, randy.macleod

If a terminal fails to spawn() we should continue looking.
gnome-terminal, in particular can be present but not start.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
---
 meta/lib/oe/terminal.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py
index a1daa2bed6..eb10a6e33e 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -207,7 +207,10 @@ def spawn_preferred(sh_cmd, title=None, env=None, d=None):
             spawn(terminal.name, sh_cmd, title, env, d)
             break
         except UnsupportedTerminal:
-            continue
+            pass
+        except:
+            bb.warn("Terminal %s is supported but did not start" % (terminal.name))
+    # when we've run out of options
     else:
         raise NoSupportedTerminals(get_cmd_list())
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-22  0:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-21 18:41 [oe-core][PATCH 1/1] terminal.py: do not stop searching for auto Joe Slater
2020-05-21 19:52 ` Randy MacLeod
2020-05-21 20:55   ` Richard Purdie
2020-05-22  0:36     ` Joe Slater

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.