[gdm] greeter: filter out root and gdm users from list
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] greeter: filter out root and gdm users from list
- Date: Fri, 18 Feb 2011 23:35:10 +0000 (UTC)
commit f100b21d67382dbdfdc5305f8cbb7f6bc9233f98
Author: Ray Strode <rstrode redhat com>
Date: Fri Feb 18 18:34:31 2011 -0500
greeter: filter out root and gdm users from list
While the accounts service filters out most of the names
we care about, it doesn't filter out the above two, so make
sure they get filtered.
gui/simple-greeter/gdm-user-chooser-widget.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-chooser-widget.c b/gui/simple-greeter/gdm-user-chooser-widget.c
index a385218..dd06bc4 100644
--- a/gui/simple-greeter/gdm-user-chooser-widget.c
+++ b/gui/simple-greeter/gdm-user-chooser-widget.c
@@ -743,6 +743,14 @@ add_user (GdmUserChooserWidget *widget,
return;
}
+ if (strcmp (act_user_get_user_name (user), GDM_USERNAME) == 0) {
+ return;
+ }
+
+ if (act_user_get_uid (user) == 0) {
+ return;
+ }
+
if (widget->priv->stock_person_pixbuf != NULL) {
pixbuf = g_object_ref (widget->priv->stock_person_pixbuf);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]