Bug 1315223

Summary: vte-profile messing up tilda and xterm
Product: [Fedora] Fedora Reporter: Valent Turkovic <valent.turkovic>
Component: vte291Assignee: Kalev Lember <klember>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: egmont, kevin, klember
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-20 19:16:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
screenshot none

Description Valent Turkovic 2016-03-07 09:44:08 UTC
Created attachment 1133704 [details]
screenshot

Description of problem:
Strange prompt, killing my productivity on Fedora

Version-Release number of selected component (if applicable):


How reproducible:
100% after installing tilda or xterm terminals

Steps to Reproduce:
1. install tilda or xterm
2. start tilda or xterm
3.

Actual results:


Expected results:
to have clean prompt

Additional info:
It looks like part of /etc/profile.d/vte.sh is at fault:

line 57:
printf "\033]777;notify;Command completed;%s\007\033]0;%s@%s:%s\007%s" "${command}" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)"

After I commented out line 57 I got clean prompt back.

Comment 1 Christian Persch 2016-03-07 12:31:42 UTC
vte.sh is a no-op in xterm unless somehow VTE_VERSION env variable gets into your xterm; you should check where that comes from.

Likely your tilda is running not against vte2.91 but the older vte3 which doesn't know this OSC sequence. That part looks to be a bug in the fedora patch to vte.sh, they should check the corresponding VTE_VERSION before adding this OSC to the PROMPT_COMMAND.

Comment 2 Egmont Koblinger 2016-03-07 16:56:41 UTC
(In reply to Christian Persch (GNOME) from comment #1)
> That part looks to be a bug in the fedora
> patch to vte.sh, they should check the corresponding VTE_VERSION before
> adding this OSC to the PROMPT_COMMAND.

(Which I pointed out at https://bugzilla.gnome.org/show_bug.cgi?id=711059#c36, yet they ignored. :-( )

Comment 3 Egmont Koblinger 2016-03-07 17:01:26 UTC
Also note that tilda uses vte2.90 in Rawhide. Fedora should upgrade to a newer version which relies on vte2.91.

By the way, Ubuntu and Debian managed to get rid of vte library version 2.90 (a.k.a. tarball version up to 0.36), move all the packages relying on this to vte library version 2.91 (a.k.a. tarball version 0.38+). Fedora should do the same.

Comment 4 Egmont Koblinger 2016-03-07 17:10:08 UTC
Filed bug 1315425.

Comment 5 Kevin Fenzi 2016-03-08 20:29:37 UTC
This script is owned by the vte291 package... moving to that component.

Comment 6 Fedora End Of Life 2016-11-24 15:57:34 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2016-12-20 19:16:47 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.