]> code.ossystems Code Review - openembedded-core.git/commit
terminal.bbclass: Improve environment handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Sep 2011 17:39:54 +0000 (18:39 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 9 Sep 2011 17:39:12 +0000 (18:39 +0100)
commit6b680c8da02017bdb17a4826f1819fe0e5f68652
tree641365cec24d086128e3a1d61a763bcf10623021
parentae4db0bacb9d40489499f77905f26502f3bcaa19
terminal.bbclass: Improve environment handling

Currently the environment handling for terminals is inconsistent. There
are two fixes here:

a) Ensure the environment is setup before all oe.terminal call

b) Actually set the environment before the spawn calls since we need
variables like DISPLAY when the commands are being executed, not just
within the terminal environment. If this doesn't happen, DISPLAY can end
up not set with the errors that brings with it when trying to run X
commands.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/terminal.bbclass