Bug 287536 - Regression: Konsole in 4.8 does not change the tab name / window title when using %w and the shell sets a new title
Summary: Regression: Konsole in 4.8 does not change the tab name / window title when u...
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.8
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-25 13:34 UTC by Christian (Fuchs)
Modified: 2011-11-29 06:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian (Fuchs) 2011-11-25 13:34:43 UTC
Version:           2.8 (using Devel) 
OS:                Linux

In 4.8 there seems to be a regression regarding window/tab titles: 
I use %w (title set by shell) for my window / tab titles, and frequently when the title should change (examples: switching user, an application which shows progress such as gentoos emerge) the window titles are not changed. 

Reproducible: Sometimes

Steps to Reproduce:
- Use %w in the window title
- Have an application which changes the title (e.g. a simple su -) 

Actual Results:  
Title does not change

Expected Results:  
Title changes

OS: Linux (x86_64) release 3.1.0-gentoo
Compiler: x86_64-pc-linux-gnu-gcc
Comment 1 Jekyll Wu 2011-11-25 15:29:43 UTC
Thanks for reporting! 

However, I failed to observe the reported problem using the "su -" example. The tab title does change, although with a little delayment instead of immediately. I also tried mc, which also updated the tab title as expected.

Maybe that extra little delayment is what you actually means by regression. I guess that is an side effect of commit 1c1981501b6e3bcd433840bf36f7851f06772322 which fixes bug 175755. I will take a look at it.
Comment 2 Sok Ann Yap 2011-11-27 02:40:41 UTC
The problem seems to be that the title doesn't change unless there is some user input, e.g. creating a new tab will leave the title as "Shell" forever, until I press enter, which will then change the title to match my $PS1 after a 1~2 seconds delay.

This behavior is very easy to notice with Gentoo, where during an emerge session the title will stay as "emerge: (1 of n) xxx/yyy-version Compile". Pressing enter will then change the title to be whatever package being compiled/installed at the moment.
Comment 3 Jekyll Wu 2011-11-29 06:17:09 UTC
Git commit 36bd1828f373a1a04b8f9d740ca014722ca0597a by Jekyll Wu.
Committed on 29/11/2011 at 06:49.
Pushed by jekyllwu into branch 'master'.

Revert "Ensure %w and %# are also expaned in the 'Copy input' dialog"

That fix is not good enough because it makes '%w' being updated only
after keystroke instead of immediately . The issue of updating title is
actually a little more complicated than I have understood.

Revert it because the regression should influence more users than the
fixed problem does. Need to spend more time to find a better fix.

CCBUG: 175755
CCBUG: 287536

This reverts commit 1c1981501b6e3bcd433840bf36f7851f06772322.

M  +0    -8    src/Session.cpp
M  +8    -0    src/SessionController.cpp

http://commits.kde.org/konsole/36bd1828f373a1a04b8f9d740ca014722ca0597a