Bug 392943 - SDDM and User Manager show the default user avatar after I modify any user account setting
Summary: SDDM and User Manager show the default user avatar after I modify any user ac...
Status: RESOLVED FIXED
Alias: None
Product: user-manager
Classification: Unmaintained
Component: kcontrol module (show other bugs)
Version: 5.16.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Jonathan Riddell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-09 19:33 UTC by Patrick Silva
Modified: 2019-11-22 11:41 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.18
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2018-04-09 19:33:19 UTC
open system settings > account details > user manager
set some avatar to your account using some file from your hard disk
restart plasma
open system settings > account details > user manager
edit 'Real name" field from your account
click "Apply" button
Your avatar remains the same above "Real name" field, but in the side bar it changed to default avatar.
logout: now SDDM shows default avatar
start plasma and lock your screen: default avatar is also used in screen locker
Comment 1 Patrick Silva 2019-09-09 00:52:51 UTC
This bug persists.
In fact, the user avatar changes in the User Manager and in the login screen (SDDM) after I modify any user account setting (real name, email, password, admin privileges and auto-login).

1. open system settings > account details > user manager
2. modify any setting of your user account
3. click "Apply" button, type your password to confirm and press enter/return
Notice that your user avatar remains the same above the "Real name" field, but in the side bar it changed to the default user avatar.
4. click "Ok" button to close the user manager
5. logout: now SDDM shows the default avatar
6. start plasma
7. open the User Manager
8. User Manager shows the default user avatar for your user account above the real name field and in the side bar instead of to show the same user avatar shown by kickoff, by the screen locker and by the logout screen
Comment 2 Méven Car 2019-11-22 11:41:04 UTC
Git commit a2f7d308f9b5eee4efdc5c3b6dc221d98f3f373d by Méven Car.
Committed on 22/11/2019 at 11:40.
Pushed by meven into branch 'master'.

Don't CacheUser/UnCacheUser when editing Realname

Summary:
1d10226d and 83549151 introduced those lines to follow gnome-control-center example.
Since then gnome-control-center does not call AccountService CacheUser UnCacheUser.
FIXED-IN: 5.18

Test Plan:
1. Open user-mananger `kcmshell5 user_manager`
2. Ensure to set any picture for your user
3. Add "1" to your Real name
4. Click on Apply

Before:
The avatar for your account in the left list is resetted to default setting.

After:
Only the RealName has changed.

Reviewers: ngraham, #plasma

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25439

M  +0    -2    src/lib/accountmodel.cpp

https://commits.kde.org/user-manager/a2f7d308f9b5eee4efdc5c3b6dc221d98f3f373d