After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 544224 - tab title and window list button do not agree.
tab title and window list button do not agree.
Status: RESOLVED NOTABUG
Product: gnome-terminal
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
: 545609 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-07-22 19:39 UTC by Diego Escalante Urrelo (not reading bugmail)
Modified: 2014-04-27 08:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
They display different things! (21.25 KB, image/png)
2008-07-22 19:40 UTC, Diego Escalante Urrelo (not reading bugmail)
  Details
potential fix (2.20 KB, patch)
2008-08-31 12:42 UTC, Christian Persch
needs-work Details | Review
Screenshot of terminal tabs (23.73 KB, image/png)
2008-11-16 18:22 UTC, Jose M. daLuz
  Details
reproduced using xrvt-unicode (803.10 KB, image/png)
2009-03-12 22:38 UTC, Ferk
  Details

Description Diego Escalante Urrelo (not reading bugmail) 2008-07-22 19:39:41 UTC
See screenshot.
Comment 1 Diego Escalante Urrelo (not reading bugmail) 2008-07-22 19:40:07 UTC
Created attachment 115044 [details]
They display different things!
Comment 2 Christian Persch 2008-07-22 20:10:35 UTC
Interestingly, tab and window title do agree. What command was being run in the terminal at the time ? Does that command maybe change the 'icon title' property, and does the window list applet show the 'icon title' or the normal title?
Comment 3 Diego Escalante Urrelo (not reading bugmail) 2008-07-22 20:18:03 UTC
It was vim, with set title that sets the terminal title.
I have no idea about the window-list, but it worked in 2.22.x so I guess it's a regression in one of both sides.
Comment 4 Mariano Absatz 2008-08-04 19:32:55 UTC
FWIW, I noticed the same thing in version 2.22.1 that comes in Ubuntu Hardy.

I'm almost sure it started happening after I upgraded from Gutsy (which I think had 2.18.2 for what I see in http://packages.ubuntu.com/search?keywords=gnome-terminal&searchon=names&suite=all&section=all

More info (and another screenshot) at https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/252411
Comment 5 Christian Persch 2008-08-14 19:34:16 UTC
*** Bug 545609 has been marked as a duplicate of this bug. ***
Comment 6 Christian Persch 2008-08-31 12:42:01 UTC
Created attachment 117694 [details] [review]
potential fix

Unfortunately I can't repro the bug, but here's a potential fix.
Comment 7 Mariano Absatz 2008-09-01 15:22:30 UTC
Any chance that this can be backported to 2.22.1?

I couldn't apply the change and when I started browsing the code to do it manually I discovered they're way to different for me to even try (there was no sync_screen_icon_title_set() function back then)...

Regards...
Comment 8 Christian Persch 2008-09-01 16:58:24 UTC
(In reply to comment #7)
> Any chance that this can be backported to 2.22.1?

No chance, no. Please try the 2.23.91 or svn trunk.
Comment 9 Christian Persch 2008-09-23 20:28:36 UTC
Has anyone who sees the bug tried if this patch fixes it?
Comment 10 Diego Escalante Urrelo (not reading bugmail) 2008-10-18 10:34:07 UTC
I think it works fine now, here from ubuntu packages in 2.24.
Comment 11 Christian Persch 2008-10-18 17:28:24 UTC
Hmm. Ubuntu doesn't use this patch, nor did anything change recently in this code...
Comment 12 Jose M. daLuz 2008-11-16 18:22:36 UTC
Created attachment 122809 [details]
Screenshot of terminal tabs

Using gnome-terminal 2.24.1 the window list and tab title do agree, but tab title is never reset back to default ("Terminal") when the command is complete. The third tab in the screenshot is new to illustrate the default.
Comment 13 Jose M. daLuz 2008-11-16 18:25:35 UTC
Forgot to mention, this is on Gentoo, so it's about as close to upstream as you get.
Comment 14 Christian Persch 2008-11-16 19:06:50 UTC
So can you please try the patch?
Comment 15 Jose M. daLuz 2008-11-29 17:04:31 UTC
(In reply to comment #14)
> So can you please try the patch?
> 
I finally had a chance to try this patch. It did not work for me, the tab title and the window list button are not updated properly, both have whatever was the last title and do not change back to "Terminal" when the application is complete.
Comment 16 Ferk 2009-03-12 22:38:40 UTC
Created attachment 130560 [details]
reproduced using xrvt-unicode

I get a simmilar behaviour when using xrvt. I have this lines in my .bashrc for changing the window title

-------------------BEGIN
case "$TERM" in
    xterm*|rxvt*)
        #Show current running program in titlebar
        trap 'echo -ne "\e]2;${BASH_COMMAND/\\/\\\\}\007"' DEBUG
${TERM}\007"'
        PROMPT_COMMAND='echo -ne "\e]2;${PWD/$HOME/~} - ${TERM}\007"'
        ##Iconname       
        #echo -ne "\e]1;gnome-terminal\007"
        ;;
    *)
        ;;
esac
-------------------END

If, in the other hand, I uncomment the icon-name line, the title in gnome-panel turns into "gnome-terminal"
Comment 17 Ferk 2009-03-14 00:07:26 UTC
It seems that the tooltip when hovering the mouse over the task list does have the right title. But the text in the task list applet doesnt.
Comment 18 Christian Persch 2009-05-26 20:35:19 UTC
Setting patch status for attament 117694 based on comment 15 f.
Comment 19 Christian Persch 2014-04-27 08:32:42 UTC
This is simply caused by the window list button showing the icon title and tab/window showing the window title.