mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 12:32:15 +02:00
terminal.py: do not stop searching for auto
If a terminal fails to spawn() we should continue looking. gnome-terminal, in particular can be present but not start. (From OE-Core rev: 6e4babdeee38d32002a4c9129e77466ae4156dd7) Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
edbf8d3999
commit
e620119715
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user