summaryrefslogtreecommitdiff
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-06 17:21:59 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-08 10:50:00 +0100
commited4957c444a2982c19e2f1f96d9afb2a992c1daf (patch)
tree6d6b906880ae5d04d1f120bdba9f50384483c5b9 /meta/lib/oe
parent76e8ab47c936674b8bb9bf1c48de53b30f5bf74a (diff)
downloadopenembedded-core-ed4957c444a2982c19e2f1f96d9afb2a992c1daf.tar.gz
openembedded-core-ed4957c444a2982c19e2f1f96d9afb2a992c1daf.tar.bz2
openembedded-core-ed4957c444a2982c19e2f1f96d9afb2a992c1daf.zip
terminal: Drop gnome-terminal --disable-factory workarounds
With the new pid monitoring code we have for recent versions of gnome-terminal we can just drop the --disable-factory code now since the other solution handles this case as well. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/terminal.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py
index 4a5ab1abba..6d6a29f983 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -51,7 +51,7 @@ class XTerminal(Terminal):
raise UnsupportedTerminal(self.name)
class Gnome(XTerminal):
- command = 'gnome-terminal -t "{title}" --disable-factory -x {command}'
+ command = 'gnome-terminal -t "{title}" -x {command}'
priority = 2
def __init__(self, sh_cmd, title=None, env=None, d=None):
@@ -61,16 +61,9 @@ class Gnome(XTerminal):
# Once fixed on the gnome-terminal project, this should be removed.
if os.getenv('LC_ALL'): os.putenv('LC_ALL','')
- # Check version
- vernum = check_terminal_version("gnome-terminal")
- if vernum and LooseVersion(vernum) >= '3.10':
- logger.debug(1, 'Gnome-Terminal 3.10 or later does not support --disable-factory')
- self.command = 'gnome-terminal -t "{title}" -x {command}'
-
# We need to know when the command completes but gnome-terminal gives us no way
# to do this. We therefore write the pid to a file using a "phonehome" wrapper
# script, then monitor the pid until it exits. Thanks gnome!
-
import tempfile
pidfile = tempfile.NamedTemporaryFile(delete = False).name
try: