[gdm] Skip locked users
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Skip locked users
- Date: Mon, 9 Apr 2012 17:26:57 +0000 (UTC)
commit e86e2bad9c7f18d149f852b46e77bf4f1fe6527e
Author: Adel Gadllah <adel gadllah gmail com>
Date: Mon Apr 9 19:18:45 2012 +0200
Skip locked users
Don't show locked (disabled) users in the user list.
Those are either "system" users with a shell or users disabled in the control-center.
See: https://bugzilla.gnome.org/show_bug.cgi?id=673784
gui/simple-greeter/gdm-user-chooser-widget.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-chooser-widget.c b/gui/simple-greeter/gdm-user-chooser-widget.c
index e469ef6..0b6bf9b 100644
--- a/gui/simple-greeter/gdm-user-chooser-widget.c
+++ b/gui/simple-greeter/gdm-user-chooser-widget.c
@@ -787,6 +787,11 @@ add_user (GdmUserChooserWidget *widget,
return;
}
+ if (act_user_get_locked (user)) {
+ g_debug ("GdmUserChooserWidget: Skipping locked user: %s", act_user_get_user_name (user));
+ return;
+ }
+
g_debug ("GdmUserChooserWidget: User added: %s", act_user_get_user_name (user));
if (widget->priv->stock_person_pixbuf != NULL) {
pixbuf = g_object_ref (widget->priv->stock_person_pixbuf);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]