mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 21:32:13 +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: 5ca00faa9c085fef1781b66561de461e9cc5b117) Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 6e4babdeee38d32002a4c9129e77466ae4156dd7) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
53559bb82d
commit
7f887005f9
@@ -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