Bug 1220006 - Sugar terminal attempts to display _vte_prompt_command's Command completed but fails
Summary: Sugar terminal attempts to display _vte_prompt_command's Command completed bu...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: sugar-terminal
Version: 28
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Peter Robinson
QA Contact: Fedora Extras Quality Assurance
URL: http://bugs.sugarlabs.org/ticket/4844
Whiteboard:
: 1479352 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-09 03:13 UTC by Samuel Greenfeld
Modified: 2018-10-10 10:23 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1479352 (view as bug list)
Environment:
Last Closed: 2018-10-10 10:23:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Samuel Greenfeld 2015-05-09 03:13:20 UTC
Description of problem:
This is an interaction between two Fedora components.

The Sugar learning environment's Terminal activity reads /etc/profile.d/vte.sh to get its shell prompt.  But this prompt attempts to show the previous command in the hardware command line(?) via an escape sequence, which the Sugar terminal does not have.

Instead; the Sugar terminal will show command prompts like:
{unicode 0x001b}777;notify;Command completed;previous_command[user@hostname directory]#


Version-Release number of selected component (if applicable): 
sugar-terminal-44-1.fc22.noarch
vte-profile-0.30.0-1.fc22.i686

How reproducible: Always

Steps to Reproduce:
1. Start the SoaS Live CD, or log into a Fedora system with Sugar (@sugar-desktop) installed using Sugar as your login environment.
2. Go through the first-time setup (if applicable) and then press the multiple horizontal line "list" icon from the spiral view.
3. Scroll down the list and choose the "Terminal" activity.
4. Look at your shell prompt.

- Actual results: An ugly shell prompt


- Expected results: Either the vte scripts should not presume every terminal has that capability, Sugar terminal should implement that capability, or Sugar terminal should silently eat the request.


- Additional info:
Seen in F22 Final TC3, x86 & x64.

Comment 1 Samuel Greenfeld 2015-05-09 22:44:12 UTC
This actually is the notification displayed in GNOME if the terminal window does not have active focus, not the hardware/xterm text line.

Comment 2 Ricardo 2015-05-27 04:10:58 UTC
This issue occurs for me in the LXDE spin of Fedora 22 for all vte based terminal emulators (at the very least Tilda and Terminator).

Thanks Samuel Greenfeld, I was able to open up /etc/profile.d/vte.sh and comment out line 57. This fixed the issue.

A workaround I had used before (probably with some unknown effect) was to open up my .bashrc and add

export PROMPT_COMMAND=;

Thanks for the help! Interestingly enough, this line is present in Fedora 21 vte.sh also, and causes no problems.

Comment 3 Semyon 2015-06-01 06:58:49 UTC
Same problem for Sakura on Fedora 22 + OpenBox.

Comment 4 Mikhail 2015-11-09 11:12:47 UTC
Workaround which works for me: 
comment the string as shown

> sudo vim /etc/profile.d/vte.sh
...
_vte_prompt_command() {
...
# printf "\033]777;notify;Command completed;%s\007\033]0;%s@%s:%s\007%s" "${command}" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)"
}

Comment 5 Fedora Admin XMLRPC Client 2016-02-12 18:20:23 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora Admin XMLRPC Client 2016-02-16 01:36:04 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora End Of Life 2016-07-19 19:34:27 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 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.

Comment 8 satellitgo 2016-07-25 02:56:53 UTC
still present in f24 and f25 SoaS

https://bugzilla.redhat.com/show_bug.cgi?id=1220006#c4

Comment 9 Frederick Grose 2017-04-24 17:52:04 UTC
Still a problem in F26 SoaS.

Comment 10 Fedora End Of Life 2017-07-25 18:55:00 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. 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 '24'.

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 24 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 11 Fedora End Of Life 2017-08-08 11:57:49 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 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.

Comment 12 Frederick Grose 2017-08-08 12:18:59 UTC
Cloned to this bug,
https://bugzilla.redhat.com/show_bug.cgi?id=1479352

Comment 13 Peter Robinson 2017-08-08 12:37:21 UTC
*** Bug 1479352 has been marked as a duplicate of this bug. ***

Comment 14 Frederick Grose 2017-08-08 19:37:23 UTC
Please reopen this bug against Fedora 26 component vte.
(I am unable to edit those attributes.)

Please see this comment from the original report:
https://bugs.sugarlabs.org/ticket/4844#comment:3

"Custom escape sequence are the responsibility of Vte, not Sugar, not Terminal, not Tilda, not Terminator, not Sakura. GNOME Terminal handles this custom sequence. As the custom sequence is generated by the Vte package (via vte.sh), and not properly consumed by the Vte package (via libvte), the problem is with Vte assuming that GNOME Terminal is in use for all shells."

Comment 15 Peter Robinson 2017-08-08 19:40:13 UTC
(In reply to Frederick Grose from comment #14)
> Please reopen this bug against Fedora 26 component vte.

Should probably be reported upstream

Comment 16 Frederick Grose 2017-11-03 14:44:21 UTC
See https://bugzilla.redhat.com/show_bug.cgi?id=1353216

Comment 17 Fedora End Of Life 2018-05-03 08:50:24 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. 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 '26'.

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 26 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 18 Frederick Grose 2018-05-03 23:14:22 UTC
This continues to be a problem on Fedora-SoaS-Live-x86_64-28-1.1.iso

Comment 19 Peter Robinson 2018-05-04 05:46:01 UTC
(In reply to Frederick Grose from comment #18)
> This continues to be a problem on Fedora-SoaS-Live-x86_64-28-1.1.iso

Should adjust the version then ;-) Is there an upstream patch?

Comment 20 Peter Robinson 2018-10-10 10:23:46 UTC
This is now fixed in Fedora 29


Note You need to log in before you can comment on or make changes to this bug.