-
Notifications
You must be signed in to change notification settings - Fork 3
Add user icon in lubuntu to login screen
Here are the official answers that did for not really help:
What solves this issue for me was an alternative with the AccountsService.
Note: as example we will use the username 'mike42'
Steps to create the icon file are as follows:
- Create an image with equal dimensions
- Save the image in .png format. The filename should be the username with no file extension. In our example where the username is 'mike42' the filename would be 'mike42' and not 'mike42.png'
For every account, there is a file /var/lib/AccountsService/users/<username>
In our example the entry would be /var/lib/AccountsService/users/mike42
Choose the image file that you 've just created and move it to the following path:
/var/lib/AccountsService/icons/<username>
In our example the path would be /var/lib/AccountsService/icons/mike42
Now we can edit the file /var/lib/AccountsService/users/<username>
and add the following entry:
[User]
Icon=/var/lib/AccountsService/icons/<username>
In our example the content of the file(/var/lib/AccountsService/users/mike42) would be the following:
[User]
Icon=/var/lib/AccountsService/icons/mike42
Provide read access to the user lightdm
for access the icon