Re: Pb using AccountsService in an extension
- From: Florian Müllner <fmuellner gnome org>
- To: shuihuzhuan free fr
- Cc: gnome-shell-list <gnome-shell-list gnome org>
- Subject: Re: Pb using AccountsService in an extension
- Date: Fri, 3 May 2013 17:22:51 +0200
On Fri, May 3, 2013 at 4:57 PM, <shuihuzhuan 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]