As suggested by Humdinger, replace "%p" by "--", if the shell is the active
process. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39528 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d0405baf86
commit
2e394a4764
@ -47,8 +47,11 @@ TitlePlaceholderMapper::MapPlaceholder(char placeholder, int64 number,
|
||||
}
|
||||
|
||||
case 'p':
|
||||
// process name
|
||||
_string = fProcessInfo.Name();
|
||||
// process name -- use "--", if the shell is active
|
||||
if (fProcessInfo.ID() == fProcessInfo.ShellProcessID())
|
||||
_string = "--";
|
||||
else
|
||||
_string = fProcessInfo.Name();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user