summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosselin Mouette <joss@malsain.org>2010-09-15 14:30:15 -0400
committerRay Strode <rstrode@redhat.com>2010-09-15 14:30:48 -0400
commitc231e254a842fd44e03cb34a4769cfc1b813e17e (patch)
tree99d201b9e74221c47d91a592a8108bfa98bec008
parentbbfd5a70eb005fd27f9141d856ddeb0d36756983 (diff)
downloadgdm-c231e254a842fd44e03cb34a4769cfc1b813e17e.tar.gz
Always show “other…” choice
When the system is configured to use NIS or LDAP, with no local user, no user shows up in the chooser. In this case, there is specific code that makes the “other…” choice disappear. I can’t think of any case where it would be useful, and in this case it makes logging in entirely impossible. https://bugzilla.gnome.org/show_bug.cgi?id=624467
-rw-r--r--gui/simple-greeter/gdm-user-chooser-widget.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gui/simple-greeter/gdm-user-chooser-widget.c b/gui/simple-greeter/gdm-user-chooser-widget.c
index 4a79c58b..19a79224 100644
--- a/gui/simple-greeter/gdm-user-chooser-widget.c
+++ b/gui/simple-greeter/gdm-user-chooser-widget.c
@@ -150,13 +150,8 @@ update_other_user_visibility (GdmUserChooserWidget *widget)
goto out;
}
- number_of_users = gdm_chooser_widget_get_number_of_items (GDM_CHOOSER_WIDGET (widget));
-
- /* we hide the Other user if it's the last one, and we show it
- * if there's another user */
- if (number_of_users == 1 && widget->priv->has_user_other) {
- remove_user_other (widget);
- } if (number_of_users >= 1 && !widget->priv->has_user_other) {
+ /* Always show the Other user if requested */
+ if (!widget->priv->has_user_other) {
add_user_other (widget);
}