On 23.03.2024 12:12, Johannes Kastl wrote:
Hi Joe,
On 23.03.24 00:13 Joe Salmeri wrote:
If you add the face pictures using System Settings / users on Tumbleweed then the pictures are stored in
/var/lib/AccountService/icons/
The file name will be the username without any extension.
I see my user's pictures there and will try to copy them to /usr/share/sddm/faces/ (or configure SDDM to look for them in /etc/ somewhere).
SDDM gets user icon from the following locations in order of preference. This presumes user icons are enabled in the first place. 1. Global system location in SDDM configuration defaulting to /usr/share/sddm/faces. The file name has to be $USER.face.icon. 2. User home directory. File name has to .face.icon. 3. AccountsService directory /var/lib/AcctountsService/icons. File name has to be $USER. SDDM does not use AccountsService API, it hard-codes the directory name. When you configure user property via KDE System Settings, it is using AccountsService and so stores icon in the last location (strictly speaking, where AccountsService is setup to store them, this is actually done by AccountsService) and *also* saves this location in AccountsService user metadata (/var/lib/AccountsService/users/$USER). Now, I can edit this metadata manually and change location. In which case System Settings will show empty icon but SDDM will happily pick the existing icon from /var/lib/AccountsSerive/icons. So storing icon in the last location most certainly works unless there is some information in the earlier locations that override it.