On Fri, May 3, 2013 at 4:57 PM, <shuihuzh...@free.fr> wrote: > I don't understand a problem I have using AccountsService in an extension, > though it works in looking glass. The code is really simple. > > AS = imports.gi.AccountsService > AS.UserManager.get_default().list_users().length
You cannot assume that list_users() returns a valid result until you are signaled that users have been loaded, e.g. the UserManager:is-loaded property is set to true. _______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list