Changing the avatar for another user changes actually the avatar for the current user.
Steps to Reproduce:
1. Click on different user or create new user account
2. Change its avatar image
3. Hit Apply
It always changes the avatar image of the current user instead of the choosen user.
Change avatar of the selected user
I tried to work on a solution however this one only works if the current user has permissions to write to the choosen users directory and overwrite the .face and .face.icon file.
Maybe those files need to be created with root/superUser rights.
Created attachment 97642 [details]
My attempted Patch
Added my attempt to patch this.
Maybe instead of trying to write we should simply show an error message or info dialog that the user needs to execute user-manager under the other accounts user to actually change this particular avatar image.
Reproduced in plasma 5.8.2
Git commit 0d43e0379a16fe5f2c58a69ff2db1cf14c28197e by David Edmundson.
Committed on 13/01/2017 at 15:27.
Pushed by davidedmundson into branch 'Plasma/5.9'.
When updating another user's avatar don't save icon into our home
We want to save the face using AccountsService, but for backwards
compatibility we also save the icon into ~/.face for old
apps/DisplayManagers that still expect that.
This works when setting a face as the current user, but doesn't make
sense when setting the icon of another user.
We can't fix it to write into another user's home, so instead of trying
just skip that step and only update AccountsService.
Related: bug 365662, bug 371663
Changed my user's avatar. AccountsService updated ~/.face updated
Changed another user's avatar from my account. Accounts service updated, ~/.face was
Reviewers: #plasma, mart
Reviewed By: mart
Differential Revision: https://phabricator.kde.org/D4036
M +25 -14 src/accountinfo.cpp