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

--- Comment #15 from Alexander Potashev <aspotas...@gmail.com> ---
I think I've found the root cause: AccountsService
(https://www.freedesktop.org/wiki/Software/AccountsService/) may set the avatar
by updating files in /var/lib/AccountsService/{icons,users}/, while the code in
kdeclarative.git/src/qmlcontrols/kcoreaddons/kuserproxy.cpp only reacts to
changes in /var/lib/AccountsService/icons/.

I'm not sure, but maybe AccountsService's behavior changed over time:
 - In Plasma 5.18.5 on Fedora I see that for predefined icons, a PNG is being
copied into /var/lib/AccountsService/icons/
 - In Plasma 5.19.90 on Archlinux when I pick a predefined icon for avatar,
only /var/lib/AccountsService/users/aspotashev would be added, and the dir
/var/lib/AccountsService/users/ won't be touched.

----

Now we have at least two options for fixing it:

 1. Hacky approach: Update
kdeclarative.git/src/qmlcontrols/kcoreaddons/kuserproxy.cpp to also track
/var/lib/AccountsService/users/[loginName] for changes with KDirWatch. This
although doesn't protect us from potential future changes in AccountsService's
behavior.

 2. Proper fix: Subscribe to D-Bus signal "changed" for the currently logged in
user. Can't say for sure if changing the icon would emit the signal though,
this needs testing.

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

Reply via email to