summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorAdel Gadllah <adel.gadllah@gmail.com>2012-04-09 19:18:45 +0200
committerAdel Gadllah <adel.gadllah@gmail.com>2012-04-09 19:27:39 +0200
commite86e2bad9c7f18d149f852b46e77bf4f1fe6527e (patch)
tree8a0d268a42bf56583484d9d44d44907fb8367407 /gui
parent97f0b7a36e4a99a1ddf88c69aab38e816e13c70c (diff)
downloadgdm-e86e2bad9c7f18d149f852b46e77bf4f1fe6527e.tar.gz
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
Diffstat (limited to 'gui')
-rw-r--r--gui/simple-greeter/gdm-user-chooser-widget.c5
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 e469ef6c..0b6bf9b5 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);