Bug 368785

Summary: konsole tab title format only uses the first program you ever ran, not the current one
Product: [Applications] konsole Reporter: peter.maloney
Component: tabbarAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: cade.robinson, julioelpoeta, mike.cloaked, rverschelde, vitoux.pascal
Priority: NOR    
Version: 16.08.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot of the first way to reproduce it

Description peter.maloney 2016-09-14 07:42:27 UTC
clearing the scrollback and "reset" don't fix it

Reproducible: Always

Steps to Reproduce:
1. start a new konsole tab
2. run "sleep 2" 
3. run "bc"
title says "username : sleep" but should say bc instead of sleep.
(step 2 has to run long enough for the tab to update; if you sleep 0.1 instead, title will say bc... and then eg. "units" afterwards, and title says "bc")

1. start a new konsole tab
2. run "sleep 2"
3. run "ssh somehost"
title says "username : sleep" which is not only the wrong command, but also not using the remote tab format, but the regular/local one.

1. start a new konsole tab
2. run "ssh somehost"
3. logout
4. run "bc"
title says "() somehost" which is also the wrong title format, using remote instead of local



Qt: 5.7.0
KDE: 5.25.0
Comment 1 peter.maloney 2016-09-14 07:44:13 UTC
Created attachment 101079 [details]
screenshot of the first way to reproduce it
Comment 2 MikeC 2016-09-15 08:22:16 UTC
Also seen in my archlinux installation. Forum discussion at https://bbs.archlinux.org/viewtopic.php?id=217112
Comment 3 Cade Robinson 2016-09-15 19:07:37 UTC
Same issue on Arch with kde-applications 16.08.1-1
Comment 4 Julio J. 2016-09-16 17:43:57 UTC
Yup, can confirm, it happens also when you connect to a remote host, the title stays the same afterwards.
Comment 5 Kurt Hindenburg 2016-09-17 16:43:38 UTC
Git commit 3747ecfde0800804717203d7f5fa0f96c0791052 by Kurt Hindenburg.
Committed on 17/09/2016 at 16:40.
Pushed by hindenburg into branch 'master'.

Fix updating of tab title

Update the tab title to current program running.

Martin, this "if" was committed in
79ca76a94696eda408927b122b0b531676d4ba93.  For now, I removed the "if"

M  +1    -3    src/Session.cpp

http://commits.kde.org/konsole/3747ecfde0800804717203d7f5fa0f96c0791052
Comment 6 RĂ©mi Verschelde 2016-09-18 08:20:59 UTC
I can confirm the bug on 16.08.1, and that the patch in comment 5 fixes it.
Comment 7 Pascal VITOUX 2016-09-19 19:24:11 UTC
*** Bug 368596 has been marked as a duplicate of this bug. ***
Comment 8 Kurt Hindenburg 2016-09-24 18:43:07 UTC
Git commit dca6479a86f17b357365f1a598b8deeb0d602dbe by Kurt Hindenburg.
Committed on 24/09/2016 at 18:41.
Pushed by hindenburg into branch 'Applications/16.08'.

Fix updating of tab title

Update the tab title to current program running.

Martin, this "if" was committed in
79ca76a94696eda408927b122b0b531676d4ba93.  For now, I removed the "if"
(cherry picked from commit 3747ecfde0800804717203d7f5fa0f96c0791052)

M  +1    -3    src/Session.cpp

http://commits.kde.org/konsole/dca6479a86f17b357365f1a598b8deeb0d602dbe
Comment 9 peter.maloney 2016-11-10 13:32:45 UTC
I can't comment on specifically which patch or revision, but it is fixed now in my current running version. Thanks.

$ kdeinit5 --version
Qt: 5.7.0
KDE: 5.27.0