Minor tweak to strip VTE_VERSION from the environment, as it puts junk chars into prompt on some distros.

This commit is contained in:
Stephen Boddy 2015-07-02 21:17:33 +02:00
parent 206196ae43
commit b8eba0f39a
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ from terminatorlib.util import dbg, err
from terminatorlib.layoutlauncher import LayoutLauncher
if __name__ == '__main__':
# Not used in the 0.2x versions of VTE and can cause unwanted chars in console.
if os.environ.has_key('VTE_VERSION'):
del os.environ['VTE_VERSION']
dbus_service = None
dbg ("%s starting up, version %s" % (APP_NAME, APP_VERSION))