Bug 487448

Summary: Despite being inaccessible from the user list, the Superuser initially appears in the Users KCM, but its fields' data is absent, and cannot be modified
Product: [Applications] systemsettings Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: kcm_usersAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor CC: uhhadd
Priority: NOR    
Version First Reported In: 6.0.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
URL: https://unix.stackexchange.com/revisions/777040/1#:~:text=12-,Indeed%2C%20when%20you%20login%20as,file%20an%20issue%20about%20this.,-answered%201%20hour
See Also: https://bugs.kde.org/show_bug.cgi?id=487449
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A Screencast Demonstrating That The User Data Cannot Be Modified
Depiction of the automatically selected user modification page.
A Screenshot Of The Empty User Fields

Description Roke Julian Lockhart Beedell 2024-05-23 22:01:26 UTC
Created attachment 169755 [details]
A Screencast Demonstrating That The User Data Cannot Be Modified

SUMMARY
When authenticated as the superuser, the Users KCM displays the avatar selection psuedo-window, yet does not enable the user to modify the avatar for the account.

STEPS TO REPRODUCE
1.  Name the superuser `root`.
2.  Log in as the superuser via SDDM.
3.  *   1.  Invoke `systemsettings`
        2.  Navigate to "Users".
    *   Invoke `kcmshell6 kcm_users`.
4.  Attempt to select an avatar.

If you select another using this process, you shall need to switch to another KCM (or, if there are no others in System Settings, or you've used KCMShell, reinitialize the KCM/SS). This is because root is not listed amongst the user list, irrespective of the current user. I shall report this separately - check "See also".

OBSERVED RESULT
I'm unable to modify the avatar.

EXPECTED RESULT
I should be able to, since the superuser's user elements remain non-disabled (and consequently apparently modifiable).

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.8.10-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Manufacturer: ASRock
Product Name: X670E Taichi

ADDITIONAL INFORMATION
As https://unix.stackexchange.com/revisions/609334/2#:~:text=When%20I%20go%20to%20the,I%20cannot%20change%20its%20avatar explains, others have experienced this and been confused.
Comment 1 Janet Blackquill 2024-05-23 22:32:57 UTC
The accounts service intentionally does not support modifying the root user, and the entire reason this system module exists and makes use of the AS is to remove the need for graphical usage of root. This is an unsupported usecase on multiple fronts.
Comment 2 Roke Julian Lockhart Beedell 2024-05-24 10:59:51 UTC
(In reply to Janet Blackquill from comment #1)
Comment 3 Roke Julian Lockhart Beedell 2024-05-24 11:02:32 UTC
Created attachment 169766 [details]
Depiction of the automatically selected user modification page.

(In reply to Janet Blackquill from comment #1)
In that case, this is even more important - you can't display a user modification page and then state that it's unsupported. The Users KCM needs to automatically select the top visible user account, rather than root's. I implore you to re-read the issue and, especially, view https://bugs.kde.org/attachment.cgi?id=169756&action=edit, then see https://bugs.kde.org/attachment.cgi?id=169755&action=edit.
Comment 4 Roke Julian Lockhart Beedell 2025-04-30 21:39:43 UTC
Created attachment 180829 [details]
A Screenshot Of The Empty User Fields

OBSERVED RESULT

When the KCM is invoked, the data fails to be read:

> qrc:/kcm/kcm_users/UserDetailsPage.qml:76: TypeError: Cannot read property 'realName' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:20: TypeError: Cannot read property 'displayPrimaryName' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:107: TypeError: Cannot read property 'realName' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:105: TypeError: Cannot read property 'faceValid' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:130: TypeError: Cannot read property 'realName' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:138: TypeError: Cannot read property 'name' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:160: TypeError: Cannot read property 'administrator' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:151: TypeError: Cannot read property 'administrator' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:174: TypeError: Cannot read property 'email' of null
> qrc:/kcm/kcm_users/UserDetailsPage.qml:196: TypeError: Cannot read property 'loggedIn' of null

When I invoke the avatar chooser, I see:

> qrc:/kcm/kcm_users/PicturesSheet.qml:104: TypeError: Cannot read property 'displayPrimaryName' of null

When I attempt to apply an avatar, I see:

qrc:/kcm/kcm_users/PicturesSheet.qml:237: TypeError: Cannot read property 'face' of null

SOFTWARE/OS VERSIONS

> Operating System: Fedora Linux 42  
> KDE Plasma Version: 6.3.4  
> KDE Frameworks Version: 6.13.0  
> Qt Version: 6.9.0  
> Kernel Version: 6.14.4-300.fc42.x86_64 (64-bit)  
> Graphics Platform: Wayland