]> code.ossystems Code Review - openembedded-core.git/commit
terminal: Fix gnome-terminal to work with recent versions
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Jul 2016 16:08:57 +0000 (17:08 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Jul 2016 09:50:00 +0000 (10:50 +0100)
commit76e8ab47c936674b8bb9bf1c48de53b30f5bf74a
treedaffb48260aa88f16a3986fd0cac6aa30468c3b6
parent0c36984d4c501d12fa91cf7371511641585cc256
terminal: Fix gnome-terminal to work with recent versions

Currently gnome-terminal just returns straight away, opening a terminal in a new
separate process we have no insight into. For patch resolution, this leads to
spawning many different terminal windows, for pydevshell, it just flashes a window
up and then closes.

We need to block until the command completes but gnome-terminal gives us no way
to do this. We therefore write the pid to a file using a "phonehome" wrapper
script, then monitor the pid until it exits.

[YOCTO #7254]
(also fixing do_devpyshell)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/terminal.py
scripts/oe-gnome-terminal-phonehome [new file with mode: 0755]