Created attachment 117634 [details]
Hi AccountsService developers,
I am developing kuseraccount for KDE5 https://github.com/xiangzhai/kuseraccount and I choose AccountsService for user management.
When I deleted a user via kuseraccount or gnome-control-center`s user-accounts, the cached users list not reload immediately: the user deleted was still in there!
So I just reload_users after deleted user successfully to force reload cached users list removing old (deleted) users.
Please pay some attention to my patch and give me some advice, thanks a lot!
that shouldn't be neccessary. when then user is deleted file monitors should queue a reload.
what version of glib do you have? you're probably hitting
(In reply to Ray Strode [halfline] from comment #1)
> that shouldn't be neccessary. when then user is deleted file monitors should
> queue a reload.
Yes, I noticed there are file monitors setup for /etc/passwd, /etc/shadow, /etc/group and so on http://cgit.freedesktop.org/accountsservice/tree/src/daemon.c#n522
Even that queue_reload_users_soon http://cgit.freedesktop.org/accountsservice/tree/src/daemon.c#n446
But I still experienced 'zombie' user: created a user named 'test', then deleted it, but it was still in the cached users list!
So I just add reload_users after deleted user successfully to force reload cached users list removing old (deleted) users.
> what version of glib do you have? you're probably hitting
Thanks for your advice, I will follow relative issue ;-)