Bug 390896

Summary: %D in tab name is incorrect when current program is sudo
Product: [Applications] konsole Reporter: ariasuni <aria>
Component: tabbarAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 17.12.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description ariasuni 2018-02-22 10:11:03 UTC
When using sudo, current tab name shows absolute path but with a `~` in front of it.
Comment 1 Kurt Hindenburg 2018-02-24 05:05:45 UTC
Git commit 6639acb746e35adae6dc99d8a9f66cf510be767d by Kurt Hindenburg.
Committed on 24/02/2018 at 05:05.
Pushed by hindenburg into branch 'master'.

Handle %D in tab format when process's home dir is not found (eg sudo)

Replace %D with - in such cases where process's home dir is empty

M  +12   -7    src/Session.cpp

https://commits.kde.org/konsole/6639acb746e35adae6dc99d8a9f66cf510be767d