[gdm] daemon: allow multiple time logins to work
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] daemon: allow multiple time logins to work
- Date: Tue, 2 Sep 2014 19:32:14 +0000 (UTC)
commit a0e7097abee606d82315137a0a5fa143fb175d3c
Author: Philippe Troin <phil fifi org>
Date: Tue Sep 2 15:28:17 2014 -0400
daemon: allow multiple time logins to work
GDM currently lumps timed login with autologin when deciding whether or
not to skip it, if it's already happened once this boot.
That's the wrong behavior, and indeed will create a confused experience,
because it's not what the login screen provided by gnome-shell
expects.
This commit allows timed login to work after the user logs out.
https://bugzilla.gnome.org/show_bug.cgi?id=732774
daemon/gdm-manager.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index 6349c1e..16eeaf6 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -1808,13 +1808,14 @@ start_autologin_conversation_if_necessary (GdmManager *manager,
GdmSession *session)
{
gboolean enabled;
+ int delay;
- if (g_file_test (GDM_RAN_ONCE_MARKER_FILE, G_FILE_TEST_EXISTS)) {
+ gdm_display_get_timed_login_details (display, &enabled, NULL, NULL, NULL);
+
+ if (delay == 0 && g_file_test (GDM_RAN_ONCE_MARKER_FILE, G_FILE_TEST_EXISTS)) {
return;
}
- gdm_display_get_timed_login_details (display, &enabled, NULL, NULL, NULL);
-
if (!enabled) {
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]