]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/terminal: fix konsole terminal support for KDE 4.x
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 25 Feb 2015 11:22:25 +0000 (11:22 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Feb 2015 07:46:31 +0000 (07:46 +0000)
It seems that the --nofork option genuinely stops konsole from going
into the background now; I'm not sure when this changed but it does seem
to be working so we can use it. (Tested with Konsole 2.10 and 2.14.2).

Fixes [YOCTO #4934].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/terminal.py

index fdfdde2f9116a495f452429c6753e772e20e0731..4f5c61161500192f2d7bfac814292ac5f8bd1817 100644 (file)
@@ -77,15 +77,15 @@ class Terminology(XTerminal):
     priority = 2
 
 class Konsole(XTerminal):
-    command = 'konsole -"{title}" -e {command}'
+    command = 'konsole --nofork -p tabtitle="{title}" -e {command}'
     priority = 2
 
     def __init__(self, sh_cmd, title=None, env=None, d=None):
         # Check version
         vernum = check_terminal_version("konsole")
-        if vernum and LooseVersion(vernum) >= '2.0.0':
-            logger.debug(1, 'Konsole from KDE 4.x will not work as devshell, skipping')
-            raise UnsupportedTerminal(self.name)
+        if vernum and LooseVersion(vernum) < '2.0.0':
+            # Konsole from KDE 3.x
+            self.command = 'konsole -T "{title}" -e {command}'
         XTerminal.__init__(self, sh_cmd, title, env, d)
 
 class XTerm(XTerminal):