Skip to contentSkip to conversation

lib/oe/terminal: set workdir for konsole terminal

PATCH New Pascal Bach 1 participant 1 message Feb 12, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/oe/terminal: set workdir for konsole terminal

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).

---
 meta/lib/oe/terminal.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/terminal.py +1 -1
index 1efc06d..634daa9 100644
@@ -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):
Signature · 1 line
2.1.4