[KDE] User Profile Pic in Login Screen (SDDM)

On my tumbleweed install I have setup two users. One during install (with sudo rights) the other one afterwards.
On the login screen (SDDM, breeze theme), the first user is displayed with his user picture, whereas for the 2nd user only a generic one (grey portrait) is used.

I can change the first user pic and it is successfully updated on the login screen, however nomatter what I do for the 2nd it is always the generic one…

Any clues?
TIA

Users own their profile pics. So, you need to login as that second user to change the pic.

How exactly do you change the user pic?

Is the not-working one (~/.face or ~/.face.icon) world-readable? It has to be, otherwise sddm cannot read and display it.

This does not mean that we now know what you did. So how can we comment on that, like telling you that you were in the wrong place, used the wrong statement or did correct, but hit a bug or whatever? lol!

So, only the logged in user can change it for himself. Or root.

Ok :slight_smile:

I used System Settings - Account details - User manager, Click on pic -> choose from gallery.

I tried it as root, but also as the user himself to no avail.

As I wrote, check the permissions of the file (and whether it actually exists):

ls -l ~/.face*

(logged in as the affected user)

Also, check that sddm can access the home directory of that user in the first place:

ls -ld ~

Just checked, it doesn’t exist at all (for the 2nd user - 1st user it does).

If I change it in the systemsettings dialog and it is remembered however (means it is stored somewhere else).

There have been changes recently to use AccountsService to change the user pic if it was stored there in the first place at least (I’m not sure if that’s in Tumbleweed yet though).
But sddm doesn’t support accountservice yet (it is planned though), unlike gdm and lightdm.

AccountsService stores the user pic in /var/lib/AccountsService/icons/username, removing the need to have your home directory world-readable.

For now, copy the pic manually to the home directory, and name it ~/.face.icon, then sddm should display it (and kdm too, which doesn’t support/use AccountsService either).

Not satisfying, but it does work.

Thanks.

Hm.
I had a look at the latest user-manager code, and it seems it actually does write the user pic to ~/.face.icon and ~/.face (it creates the former as a symlink to the latter).

Actually there haven’t been any changes in this regard for a long time, and it definitely worked when I last tried it.

Maybe there was some problem with writing the file, or reading the original one? (missing permissions e.g.)