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 321929 - Can't set Icon Title from command line
Can't set Icon Title from command line
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
2.12.x
Other All
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
list-kmaraas
Depends on:
Blocks:
 
 
Reported: 2005-11-20 15:15 UTC by Kevin Saling
Modified: 2006-01-05 16:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Changes icon title when a title is given at the command line. (757 bytes, patch)
2005-12-18 17:53 UTC, Jan Boehm
committed Details | Review

Description Kevin Saling 2005-11-20 15:15:07 UTC
Please describe the problem:
-t sets window title but this does not set the icon title which is used by gnome
window-list applet.  See http://bugzilla.gnome.org/show_bug.cgi?id=321915 for
screenshots.

Steps to reproduce:
1. launch `gnome-terminal -t top -e top`
2. Observe that gnome-terminal's window title correctly shows "top"
3. Observe that window-list button incorrectly displays whatever value is
configured in gnome-terminal's "Initial Title" field (Edit/Current Profile/Title
and Command)

Actual results:
gnome-terminal does not set the icon title along with the window title when the
-t switch is used.

Expected results:
gnome-terminal should set the icon title along with the window title when the -t
switch is used.

Does this happen every time?
Yes

Other information:
After launching a gnome-terminal with a customized window title, the
"Dynamically-set Title" field (Edit/Current Profile/Title and Command) updates
the icon title to match the window title.  This should also be done at startup
with the -t switch.
Comment 1 Olav Vitters 2005-12-18 13:55:29 UTC
Patch should be pretty easy.
Comment 2 Jan Boehm 2005-12-18 17:53:45 UTC
Created attachment 56118 [details] [review]
Changes icon title when a title is given at the command line.

Indeed a nice bug for beginners... so I fixed it :)
Hopfully all is right.

Changes:
src/terminal.c:
   terminal_app_new_terminal(): Call terminal_screen_set_dynamic_icon_title() as well if a title is given at the command line.
Comment 3 Guilherme de Siqueira Pastore 2006-01-05 16:23:25 UTC
Patch applied on CVS HEAD. Thanks.