Display only username in PersonalTools
mdoggydog opened this issue · 1 comments
mdoggydog commented
I'd like to be able to display only the username on the PersonalTools
dropdown button. The current behavior when showUserName
is enabled is to show the user's realname, and only show the username if the user has no realname. In our environment, not all of our users have realnames and we uniformly identify ourselves by username, so that inconsistency is kind of off-putting.
I'd be happy to try submitting a patch for this myself, but my main question is, what would be the preferred way to address this functionality in a layout file? Some options that come to mind:
- Retain backwards compatibility with the existing but-confusingly-named
showUserName
option:showUserName = "no"
- show nothingshowUserName = "yes"
- try showing a realname, but fallback to usernameshowUserName = "username-only"
- show only the username
- Take the opportunity to clear-up the meaning of
showUserName
:showUserName = "no"
- show nothingshowUserName = "yes"
- show only the usernameshowUserName = "try-realname"
- try showing a realname, but fallback to username
- Retain boolean values (as deprecated) for backwards compatibility, but focus on clear new non-boolean values:
showUserName = "none"
- show nothingshowUserName = "try-realname"
- try showing a realname, but fallback to usernameshowUserName = "username-only"
- show only the usernameshowUserName = "no"
(deprecated) - show nothingshowUserName = "yes"
(deprecated) - try showing a realname, but fallback to username
Personally, I prefer option 3 (because it bugs me that "showUserName = yes" does not just show a username).