terminator putting extra stuff in prompt

Asked by Denis Leclair

I just installed terminator on my laptop running Fedora. For some reason the terminator prompt has an extra field in front of the normal bash prompt and there's even a non-printable character at the beginning. I'm not sure where this is coming from or how to get rid of it.

This is what I get in terminator:
]7;file://dleclair-lptp.btisystems.com/home/dleclair/ws/atlas/branches/HERC-R1-DEV/atlas[dleclair@dleclair-lptp atlas]$

Here is the prompt for the same CWD from gnome-terminal:
[dleclair@dleclair-lptp atlas]$

Here is the PS1 environment variable used in all my bash shells (same for terminator and gnome-terminal):
]7;file://dleclair-lptp.btisystems.com/home/dleclair/ws/atlas/branches/HERC-R1-DEV/atlas[dleclair@dleclair-lptp atlas]$ echo $PS1
[\u@\h \W]\$
]7;file://dleclair-lptp.btisystems.com/home/dleclair/ws/atlas/branches/HERC-R1-DEV/atlas[dleclair@dleclair-lptp atlas]$

Thanks for your help!

Question information

Language:
English Edit question
Status:
Answered
For:
Terminator Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

seems to be a known problem https://bugzilla.redhat.com/show_bug.cgi?id=977697 The most important information probably is contained in comment 20 of that bug report, but I do not know what you could do to solve that error. Maybe you should consider creating a bug report.

Revision history for this message
Stephen Boddy (stephen-j-boddy) said :
#2

There seems to be a difference in how Fedora and Ubuntu environment vars get inherited by child processes. In Ubuntu there is no VTE_VERSION in the child terminator launched from a gnome terminal with the variable. I'm not a Fedora user, and I'm not sure we could fix this in the Terminator (gtk2) code. Perhaps the environment could be checked on startup, and the VTE_VERSION stripped out/unset before any shells get started. In theory that would fix it.

Revision history for this message
Stephen Boddy (stephen-j-boddy) said :
#3

Denis, I don't have Fedora to test this, so could you? In the main terminator script after the line:
if __name__ == '__main__':
insert the following two lines:
    if os.environ.has_key('VTE_VERSION'):
        del os.environ['VTE_VERSION']
and try that. Hopefully it removes the version from the Python env, and any subsequently launched terminals, fixing the issue in a trivial way.

Can you help with this problem?

Provide an answer of your own, or ask Denis Leclair for more information if necessary.

To post a message you must log in.