Comment 9 for bug 422052

Revision history for this message
Ted Gould (ted) wrote : Re: [Bug 422052] Re: Menu should list users if fewer than 6 are on the system

On Wed, 2009-09-02 at 17:26 +0000, Rick Spencer wrote:
> Please use pitti's suggested few lines of code to get the users list
> within the indicator-session code. If a different architectural model
> arises, such as an api call, we can switch to that later.

Pitti's code won't do everything that's required. It's a small part of
the problem. Here's the code that's required for figuring out, the list
is users, where their icons are, whether they are currently logged in
and switching to them if they are selected:

http://git.gnome.org/cgit/gdm/tree/gui/simple-greeter/gdm-user-manager.c
  http://git.gnome.org/cgit/gdm/tree/gui/simple-greeter/gdm-user.c

There's simply a lot of cases to deal with. And I don't believe that
GDM code has any protections in place for large networks, which also
would need to be added.

I'm not in any way saying that this is impossible, but we shouldn't
minimize the problem.