lib/oe/terminal: fix konsole terminal support for KDE 4.x
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]. (From OE-Core rev: 49b21abf1020b2eefbbec98415c3d7de8827c993) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f160730bbd
commit
6d7cf8e9dd
|
@ -77,15 +77,15 @@ class Terminology(XTerminal):
|
||||||
priority = 2
|
priority = 2
|
||||||
|
|
||||||
class Konsole(XTerminal):
|
class Konsole(XTerminal):
|
||||||
command = 'konsole -T "{title}" -e {command}'
|
command = 'konsole --nofork -p tabtitle="{title}" -e {command}'
|
||||||
priority = 2
|
priority = 2
|
||||||
|
|
||||||
def __init__(self, sh_cmd, title=None, env=None, d=None):
|
def __init__(self, sh_cmd, title=None, env=None, d=None):
|
||||||
# Check version
|
# Check version
|
||||||
vernum = check_terminal_version("konsole")
|
vernum = check_terminal_version("konsole")
|
||||||
if vernum and LooseVersion(vernum) >= '2.0.0':
|
if vernum and LooseVersion(vernum) < '2.0.0':
|
||||||
logger.debug(1, 'Konsole from KDE 4.x will not work as devshell, skipping')
|
# Konsole from KDE 3.x
|
||||||
raise UnsupportedTerminal(self.name)
|
self.command = 'konsole -T "{title}" -e {command}'
|
||||||
XTerminal.__init__(self, sh_cmd, title, env, d)
|
XTerminal.__init__(self, sh_cmd, title, env, d)
|
||||||
|
|
||||||
class XTerm(XTerminal):
|
class XTerm(XTerminal):
|
||||||
|
|
Loading…
Reference in New Issue