Bug 369632

Summary: %u doesnt show current user anymore
Product: [Applications] konsole Reporter: farmboy0
Component: tabbarAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 16.08.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description farmboy0 2016-10-02 11:35:33 UTC
In konsole profile you can define the appearance for the tab describtion.
One template you can use is User Name %u.
This currently shows only the current user logged in to KDE, not the user that is active in the console when you switched for instance with su.
This worked before.

Reproducible: Always

Steps to Reproduce:
1. Open konsole
2. Configure the profile to show %u in the tab description
3.Use su <username> to switch to another user

Actual Results:  
The username used to log into KDE is still shown

Expected Results:  
The <username> that was switched to with su is shown.
Comment 1 Kurt Hindenburg 2016-11-08 23:45:31 UTC
I can't reproduce this - you are on the latest version and Linux so it should work.  If you can provide an image and if anything unusual about your system.  The code uses /proc/ and getpwuid_r to find various info.  Also try running konsole from an xterm or another terminal to see if any errors print.
Comment 2 farmboy0 2016-11-09 19:12:18 UTC
This bug can be closed. It works again.
I am using Plasma 5.8.3 and konsole 16.08.02 now.
Not sure exactly when it was fixed.
Comment 3 Christoph Feck 2016-11-11 16:08:51 UTC
Thanks for the update, closing.