Bug 183487 - Konsole tab title very slow update time
Summary: Konsole tab title very slow update time
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-06 23:38 UTC by Unknown
Modified: 2009-04-13 13:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2009-02-06 23:38:17 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Ubuntu Packages

I have changed (Settings->Edit Current Profile->Tabs->Tab Titles->Tab Title Format) to (%n : %d), to include directory name in the tab title.

But, whenever I 'cd' to a different directory, it takes 3 to 4 secs for the tab/window title to get updated and I think this should be done immediately, as it looks strange for the user !!

Thanks a lot...
Comment 1 Robert Knight 2009-02-07 12:53:47 UTC
This is actually intentional.  The reason is to stop the tab text flickering when running a command that invokes a lot of sub-commands or which changes directory very frequently.  Originally the delay was quite short (0.2 seconds) but after testing I increased it to 2 seconds.
Comment 2 Matthew Woehlke 2009-02-10 00:58:22 UTC
It seems it should be possible to do better... maybe set the interval very low, but don't change unless it has been static for a longer time?
Comment 3 Robert Knight 2009-02-10 16:12:04 UTC
> It seems it should be possible to do better

Definitely - but just making the delay shorter isn't the answer though.
Comment 4 Médéric Boquien 2009-02-10 16:25:49 UTC
I agree that this bug is very annoying. I often cd to a directory and then open 4-5 tabs to realise that the new tabs opened in the previous directory … Would it be possible to check the dir each time the command line is given back to the user? That is when a programme is running on the foreground keep things as they are now but as soon as it ends update the directory? Is that feasible?
Comment 5 Matthew Woehlke 2009-02-10 17:37:59 UTC
> just making the delay shorter isn't the answer though

True, but that's not what I suggested. I also suggested a means of "flicker prevention".

Of course, what we really need is the feature from Sirius Cybernetics Happy Vertical People Transporters so that we can change the title when we know it will be correct for the next few seconds. ;-)
Comment 6 Robert Knight 2009-02-10 23:13:45 UTC
> I agree that this bug is very annoying. I often cd to a
> directory and then open 4-5 tabs to realise that the new tabs
> opened in the previous directory

I hadn't noticed this before but yes it is related.  Whenever a new tab needs to be opened it should update the current directory information from the current tab regardless of the update delay anyway.
Comment 7 Médéric Boquien 2009-04-13 02:32:07 UTC
Hi!

I have had a look to refresh the current working dir when opening a new tab, however it appears that it is only possible to update it from within the Session class. As i am not that familiar with the konsole code base i guess the updateWorkingDirectory() function is kept private for a good reason. I am unsure what is the cleanest way to proceed (especially that my programming skills are not that great).

Thanks!

PS: is that bug really INVALID? I keep hitting it quite a few times everyday.
Comment 8 Robert Knight 2009-04-13 13:32:30 UTC
> PS: is that bug really INVALID? I keep hitting it quite a few times everyday.

The bug you are talking about is not what this report is about.  This report is only about the delay between input to the terminal and the tab title updating - that delay was added after testing.  See comment #1