]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/terminal: set workdir for konsole terminal
authorPascal Bach <pascal.bach@siemens.com>
Fri, 12 Feb 2016 15:06:13 +0000 (16:06 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 13 Feb 2016 08:27:18 +0000 (08:27 +0000)
It seems that if the --workdir option is not set konsole does open in the users
home directory. By setting --workdir . konsole opens in the recipes work
directory. This is the same behavior as observed for other consoles.
(Tested with Konsole 2.14.2 on Debian Jessie).

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/terminal.py

index 1efc06d08e66f6540e4edac501f384a290c3ea28..634daa90330759aa02c97cb80917a088d0ceb123 100644 (file)
@@ -83,7 +83,7 @@ class Terminology(XTerminal):
     priority = 2
 
 class Konsole(XTerminal):
-    command = 'konsole --nofork -p tabtitle="{title}" -e {command}'
+    command = 'konsole --nofork --workdir . -p tabtitle="{title}" -e {command}'
     priority = 2
 
     def __init__(self, sh_cmd, title=None, env=None, d=None):