Skip to contentSkip to conversation

terminal.py: Add compatiblity for konsole 16.08.1

PATCH New Davis, Michael 1 participant 1 message Oct 17, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 terminal.py: Add compatiblity for konsole 16.08.1

Konsole has dropped support for the nofork flag. It has been replaced with the seperate flag.

---
 meta/lib/oe/terminal.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/lib/oe/terminal.py +4 -1
index 3901ad3..7446c44 100644
@@ -97,7 +97,7 @@ class Terminology(XTerminal):
     priority = 2
 
 class Konsole(XTerminal):
-    command = 'konsole --nofork --workdir . -p tabtitle="{title}" -e {command}'
+    command = 'konsole --separate --workdir . -p tabtitle="{title}" -e {command}'
     priority = 2
 
     def __init__(self, sh_cmd, title=None, env=None, d=None):
@@ -106,6 +106,9 @@ class Konsole(XTerminal):
         if vernum and LooseVersion(vernum) < '2.0.0':
             # Konsole from KDE 3.x
             self.command = 'konsole -T "{title}" -e {command}'
+        elif vernum and LooseVersion(vernum) < '16.08.1':
+            # Konsole pre 16.08.01 Has nofork
+            self.command = 'konsole --nofork --workdir . -p tabtitle="{title}" -e {command}'
         XTerminal.__init__(self, sh_cmd, title, env, d)
 
 class XTerm(XTerminal):
Signature · 1 line
2.5.5