https://bugs.kde.org/show_bug.cgi?id=336994

Fitzcarraldo <fitzcarral...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fitzcarral...@hotmail.com

--- Comment #16 from Fitzcarraldo <fitzcarral...@hotmail.com> ---
I'm currently using Gentoo Linux with the following packages:

a. lightdm-1.18.3 (with the patch in Gentoo Bug Report #605370 for non-systemd
installations, although I believe that is irrelevant as far as this bug is
concerned)
b. lightdm-gtk-greeter-2.0.1-r1
c. plasma-meta-5.9.5
d. accountsservice 0.6.43-r1

Below is a work-around for this bug, which works in my case. Steps 5 to 7 only
apply to SDDM (I use LightDM and have not checked if the steps below are a
work-around for an installation using SDDM). The other steps apply to both
LightDM and SDDM.

1. I created a 96x96 PNG avatar
/home/fitzcarraldo/Pictures/Avatars/Fitzcarraldo.png

2. I edited the file /var/lib/AccountsService/users/fitzcarraldo to contain the
following (replace 'en_GB.utf8' with your language)

[User]
Language=en_GB.utf8
XSession=plasma
SystemAccount=false
Icon=/var/lib/AccountsService/icons/fitzcarraldo        

3. I made sure that file has 644 permissions

clevow230ss fitzcarraldo # ls -la /var/lib/AccountsService/users/fitzcarraldo
-rw-r--r-- 1 root root 104 Aug  5 16:43
/var/lib/AccountsService/users/fitzcarraldo     

4. I copied the avatar to the relevant directory and made sure it has 644
permissions

clevow230ss fitzcarraldo # cp
/home/fitzcarraldo/Pictures/Avatars/Fitzcarraldo.png
/var/lib/AccountsService/icons/fitzcarraldo
clevow230ss fitzcarraldo # ls -la /var/lib/AccountsService/icons/fitzcarraldo
-rw-r--r-- 1 root root 12667 Aug  5 16:23
/var/lib/AccountsService/icons/fitzcarraldo   

5. I also copied the avatar to ~/.face.icon (possible SDDM requirement, I
believe)

fitzcarraldo@clevow230ss ~ $ cp ~/Pictures/Avatars/Fitzcarraldo.png
~/.face.icon        

6. I edited /etc/sddm.conf and changed the path of FacesDir as shown below

# Face icon directory
# The files should be in username.face.icon format
#FacesDir=/usr/share/sddm/faces
FacesDir=/var/lib/AccountsService/icons/

7. I put a copy of the avatar in FacesDir with the file name I believe SDDM
requires

clevow230ss fitzcarraldo # cp
/home/fitzcarraldo/Pictures/Avatars/Fitzcarraldo.png
/var/lib/AccountsService/icons/fitzcarraldo.face.icon        

8. I rebooted (logging out is not sufficient).

I now have the avatar Fitzcarraldo.png on LightDM's GTK Greeter screen, on the
KDE Plasma 5 Lock screen, in 'System Settings' > 'Account Details' > 'User
Manager', and at the top of the KDE Plasma 5 Application Launcher menu.

I recommend not using 'System Settings' > 'Account Details' > 'User Manager'
until the bug is squashed, but you can copying the avatars of the other users
in your installation to /var/lib/AccountsService/icons/ and add/edit the other
users' files in /var/lib/AccountsService/users/ as I explained above. I have
always used the utility superadduser on the command line to add new users (if
it's not available in your distribution then use your distribution's usual
command-line commands to add a new user). I have now used it to add a new user,
and then I manually repeated the process I described above. The avatar of the
new user is displayed correctly everywhere it should be, and my own account's
avatar is still displayed everywhere it should be. So I can achieve everything
without touching 'System Settings' > 'Account Details' > 'User Manager'.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to