Bug 361460 - Avatar change has no effect in sddm login manager (user-manager saves icons to /var/lib/AccountsService/icons/<user>, not /var/lib/AccountsService/icons/<user>.face.icon
Summary: Avatar change has no effect in sddm login manager (user-manager saves icons t...
Status: RESOLVED UPSTREAM
Alias: None
Product: user-manager
Classification: Unmaintained
Component: kcontrol module (show other bugs)
Version: 5.11.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Jonathan Riddell
URL: https://github.com/sddm/sddm/issues/683
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-06 15:51 UTC by Patrick Silva
Modified: 2017-11-16 01:53 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2016-04-06 15:51:56 UTC
avatar change does no effect in sddm login manager

Reproducible: Always

Steps to Reproduce:
1.change your user account avatar and apply the change
2.press ctrl+alt+L to block your session (ok, the new avatar appears)
3.do logout from your kde plasma session

Actual Results:  
sddm is still showing default avatar

Expected Results:  
sddm shows the new avatar
Comment 1 Rex Dieter 2016-04-06 17:13:41 UTC
I've found this can depend on your distro's default permissions for $HOME.   In short, sddm (unprivledged) needs to have read access to your $HOME/.face
Comment 2 Marco Parillo 2017-03-24 19:30:48 UTC
Additionally, when you use KDE System Settings to add a second account, give it a different picture that is used within Plasma, and now there are two $HOME directories, SDDM needs a way to show both avatars, right?
Comment 3 Júlio Brito 2017-07-28 13:43:35 UTC
I Can confirm this issue using fedora 26 kde spin.
Plasma Desktop 5.10.1

A think it isnt hard to solve, but the status need to me turned to confirmed.
Comment 4 Rog131 2017-10-30 19:03:11 UTC
At here the avatar is picked by the sddm if the FacesDir is set to /var/lib/AccountsService/icons. More: https://forum.kde.org/viewtopic.php?f=17&t=13166&start=15#p374337

There is small bug: The UserManager is saving the icon to the /var/lib/AccountsService/icons/<username> but the sddm  is looking /var/lib/AccountsService/icons/<username.face.icon>.

I don't know which is right but a workaround is to sýmlink the avatar icons.
Comment 5 Nate Graham 2017-11-15 00:11:50 UTC
AccountsSevice is responsible for saving the icons in /var/AccountsService, not UserManager. And SDDM is the consumer of those icons. Since neither of those products are tracked in the KDE bugzilla, this will have to be fixed somewhere else. There is an old open patch to make SDDM more AccountsService-aware: https://github.com/sddm/sddm/pull/525/files

Might be worth it to push on that a bit.
Comment 6 Nate Graham 2017-11-15 02:27:24 UTC
Relevant upstream SDDM bug report: https://github.com/sddm/sddm/issues/683
Comment 7 Patrick Silva 2017-11-15 02:48:34 UTC
(In reply to Nate Graham from comment #6)
> Relevant upstream SDDM bug report: https://github.com/sddm/sddm/issues/683

Subscribed!
Thanks for your great work Nate.
Comment 8 Nate Graham 2017-11-15 03:02:27 UTC
You're welcome. The SDDM change is utterly trivial; I'm going to try to submit a pull request soon.
Comment 9 Nate Graham 2017-11-15 06:03:47 UTC
Pull request/patch submitted: https://github.com/sddm/sddm/pull/939
Comment 10 Nate Graham 2017-11-15 14:21:56 UTC
My pull request was accepted and merged, so this should be resolved with a newer version of SDDM.
Comment 11 Patrick Silva 2017-11-15 14:29:29 UTC
Thank you very much Nate!
Have a nice day.
Comment 12 Christoph Feck 2017-11-16 01:41:12 UTC
Uh oh, soon Nate not only triages all KDE bugs, but also all bugs on github ;)
Comment 13 Nate Graham 2017-11-16 01:53:22 UTC
...And submits patches for them, too! >:D