Comment 3 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 14:46 +0000, Martin Pitt wrote:
> Does this really need to come from gdm? We can certainly add a d-bus
> call there, but why not just iterate over getpwent() and filter out UIDs
> < 500 (the system users) and >= 65534 (nobody)? That's more or less what
> gdm does as well.

GDM does other things like watch for changes, etc. So we wanted to have
one person doing that on the whole system instead of GDM doing it, the
greeter doing it, and every instance of indicator-session doing it.
There are also things like the user names that are blocked, and that
logic should really be in one place so that if you hide a user it gets
hidden everywhere instead of needing to copy the logic between the
different code bases.