Bug 479929

Summary: The preview for avatars with a changeable background does not work properly
Product: [Applications] systemsettings Reporter: Robert <robert>
Component: kcm_usersAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate, uhhadd
Priority: NOR Keywords: qt6
Version First Reported In: master   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=479454
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot 1
Screenshot 2
Screenshot 3

Description Robert 2024-01-17 04:42:35 UTC
Created attachment 164967 [details]
Screenshot 1

SUMMARY
If you have selected an avatar it should appear in the preview, instead the placeholder letter always appears. [Screenshot 1] When you click on apply, the avatar is displayed in the preview, although it is displayed in a very square circle, but is also not updated correctly in the user list. [Screenshot 2] Only when you reopen the user settings is everything updated, the square circle remains. [Screenshot 3]

STEPS TO REPRODUCE
1. Open System Settings
2. Go to the Users tab
3. Click Change Avatar
4. Click on the letter or the basic avatar
5. Choose a colour

OBSERVED RESULT
See summary

EXPECTED RESULT
Same behavior as with image-based avatars

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1
Kernel Version: 6.5.0-14-generic (64-bit)
Graphics Platform: Wayland
Comment 1 Robert 2024-01-17 04:42:49 UTC
Created attachment 164968 [details]
Screenshot 2
Comment 2 Robert 2024-01-17 04:43:00 UTC
Created attachment 164969 [details]
Screenshot 3
Comment 3 Nate Graham 2024-02-22 19:50:30 UTC
Can reproduce with those steps.
Comment 4 Harald Sitter 2024-02-23 10:42:07 UTC
Git commit 230a5940bafaa4736cdf1ac9eff9e470b24760c7 by Harald Sitter.
Committed on 23/02/2024 at 10:29.
Pushed by sitter into branch 'master'.

kcms/users: make uri from path

in Qt6 we want proper URIs as paths get resolved to qrc:/ because of
changes in kirigami (? IIRC)

M  +6    -4    kcms/users/src/ui/PicturesSheet.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/230a5940bafaa4736cdf1ac9eff9e470b24760c7
Comment 5 Harald Sitter 2024-02-23 13:28:48 UTC
Git commit b009780c107d9282979ce9c86a899858b4bbb418 by Harald Sitter.
Committed on 23/02/2024 at 13:02.
Pushed by sitter into branch 'Plasma/6.0'.

kcms/users: make uri from path

in Qt6 we want proper URIs as paths get resolved to qrc:/ because of
changes in kirigami (? IIRC)
(cherry picked from commit 230a5940bafaa4736cdf1ac9eff9e470b24760c7)

M  +6    -4    kcms/users/src/ui/PicturesSheet.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/b009780c107d9282979ce9c86a899858b4bbb418