Bug 441821

Summary: Users (local accounts) list looks bad when "real name' isn't filled in
Product: [Applications] systemsettings Reporter: ratijas <me>
Component: kcm_usersAssignee: Janet Blackquill <uhhadd>
Status: RESOLVED FIXED    
Severity: minor CC: nate, plasma-bugs
Priority: NOR    
Version: 5.22.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.23
Attachments: without name
with name

Description ratijas 2021-08-31 17:30:17 UTC
Created attachment 141187 [details]
without name

SUMMARY
Users on Linux usually just have a username. Desktop environments may try to provide "full name" and profile picture extensions, but they are for obviously not mandatory. I was surprised to find out that Users KCM of system settings seriously expected me to provide full name, otherwise the list of users looks weird without it.


STEPS TO REPRODUCE
1. Open system settings
2. Open Users tab/page/KCM
3. Select your account or create a new one
3. Remove text from the "full name" field, right next to a profile picture.

OBSERVED RESULT
The row of that account under Your Account section in the list of account... is looking weird because it only shown username as a little shaded subheading, but the main text is empty -- it is supposed to be the "full name".

EXPECTED RESULT
If full name is not specified, use the username as the row's primary (big) text. For example, Application Launcher applet does this: it shows name when available, but falls back to username.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.13.12-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2

ADDITIONAL INFORMATION
I still wonder, what the full name is used for in Linux/KDE world?
Comment 1 ratijas 2021-08-31 17:30:43 UTC
Created attachment 141188 [details]
with name
Comment 2 Bug Janitor Service 2021-09-01 15:51:44 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/553
Comment 3 Nate Graham 2021-09-01 19:45:20 UTC
Git commit 6d54c27d8fa7a775133b201ee7cb9ac14edc886f by Nate Graham.
Committed on 01/09/2021 at 19:36.
Pushed by ngraham into branch 'master'.

kcms/users: improve UI for the case where no real name is set

Currently the title of the list item is blank, leaving an awkward
subtitle with nothing above it. This commit improves that to use the
username as the title and avoid setting the subtitle at all, in the case
where the user has not provided their real name.
FIXED-IN: 5.23

M  +4    -3    kcms/users/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/commit/6d54c27d8fa7a775133b201ee7cb9ac14edc886f