Bug 181052 - Konsole often does not update program name in title
Summary: Konsole often does not update program name in title
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-17 09:25 UTC by Andrey Borzenkov
Modified: 2009-01-21 22:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Konsole screenshot with "stale" %n (94.03 KB, image/png)
2009-01-17 09:26 UTC, Andrey Borzenkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Borzenkov 2009-01-17 09:25:38 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

Mandriva RPM based on 4.1.96.

Konsole titile is set to "%w [%n]". The %n part often is not updated after program ends and returns to shell. See screenshot where program (urpme) exited long ago but title still shows it as running. Pressin RETURN at shell prompt usually updates it to show shell name.
Comment 1 Andrey Borzenkov 2009-01-17 09:26:44 UTC
Created attachment 30334 [details]
Konsole screenshot with "stale" %n
Comment 2 Robert Knight 2009-01-18 01:49:07 UTC
This is actually intentional behavior.  When testing the automatic tab titles I found it more useful in terms of being able to remember what I was doing in a session for tabs to show the name of the last program running when I was interacting with that tab than the current program.  Otherwise if you have a bunch of long running tasks in different tabs they would all just show:

'dir : $SHELL' in each one if you came back to the terminal after they had all ended, which isn't so useful.

The updates to the tab title are triggered by user input to the shell.
Comment 3 Andrey Borzenkov 2009-01-21 19:38:50 UTC
So konsole is not supposed to update title on its own after program exits? Hmm ... it does it pretty often. Should *this* be considered a bug then? :)
Comment 4 Robert Knight 2009-01-21 22:34:57 UTC
> So konsole is not supposed to update title on its own after program exits?

If you typed in the session shortly before or after the program finished then it will be updated after the program ends (the delay between typing and updating the display is two seconds).  If on the other hand you start a long running program which finishes while you're not interacting with that session then the existing title will remain.