Bug 336829

Summary: [frameworks] Drop usage of $PREFIX/share/kdm/pics/users
Product: [Applications] systemsettings Reporter: Elias Probst <mail>
Component: kcm_useraccountAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: aacid
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Elias Probst 2014-06-28 13:19:29 UTC
As KDM is history in KF5/P5, we should find a proper source for selecting user avatars instead of $PREFIX/share/kdm/pics/users.

So far I was unable to find any information regarding an XDG-compliant location where to look for (or even install to) user avatars - input welcome.
Comment 1 Elias Probst 2014-06-28 16:26:18 UTC
Tried to get a bit more information regarding this in #freedesktop. The current results:

> <ximion> eliasp: there is no formal standard for that yet, but /usr/share/pixmaps/faces is inoficially used
> <ximion> and IMHO that's a very sane location to choose
> <eliasp> ximion: ok, that's at least a start for me… thanks a lot
> <ximion> we might want to standardize that...
-*- ximion makes a note
> <ximion> (at time it's used by a few DMs, including GDM)
> <eliasp> ximion: great, thanks a lot… sddm might use this then as well: https://github.com/sddm/sddm/issues/174#issuecomment-47430930
> <eliasp> let's see what the others say 
> <ximion> eliasp: I stumbled upon that for the Tanglu linux distribution, where I didn't want to implement icon-selection twice in the installer...
> <ximion> maybe we can get GNOME to place their images in a subdirectory in faces/, so naming-collisions are less likely to happen, in case someone writes some kind of "faces theme"
> <ximion> (I could imagine this might happen in corporate environments - they sometimes care about minor details like that)
> <eliasp> subdirectories sound good… so applications should scan faces/ recursively for files
> <eliasp> or (if wanted) just pick their own domain-specific subdirectory…
> <ximion> yes, that would be pretty nice
> <ximion> eliasp: for reference, that's what the directory contains on my system at time: http://postimg.org/image/ptoy80orz/
> <ximion> sizes are 96x96, which is reasonable
> <eliasp> I wonder whether optional XXxXX (various sizes + scalable) subdirectories should be supported… 96x96 might be mostly reasonable, but it isn't anymore on HighDPI displays…
> <ximion> we might indeed need a formal spec...
> <eliasp> ximion: sure… there are to many factors involved for a "just do it like that" implementation
> <eliasp> ximion: I'm not involved in XDG specs + processes at all… are you? so could you trigger a discussion and what's needed regarding this?
> <ximion> halfline: hi! do you have a second? Do you think from the gdm side that a spec like this makes sense, meaning would GNOME be interested in supporting it?
> <ximion> (see backlog tl;dr, defining a directory where DMs can pull default user faces from)

I'll keep this bug updated regarding this - I hope this settles as a XDG spec soon, so it could be implemented here.
Comment 2 Albert Astals Cid 2015-09-26 13:32:24 UTC
Starting with Plasma 5.4 kcm_useraccount has been deprecated in favor of user-manager (you can run with kcmshell5 user_manager).

This means that unfortunately we did not get to fix your bug, sorry about that.

We encourage you to try user-manager and report any bug or improvement you may find. 

Sorry again for not fixing your bug and thanks for caring about KDE :)