2023-03-20 12:50:07 +00:00
|
|
|
--- a/daemon/gdm-local-display-factory.c
|
|
|
|
+++ b/daemon/gdm-local-display-factory.c
|
|
|
|
@@ -552,8 +552,10 @@ on_display_status_changed (GdmDisplay
|
2022-03-21 09:04:49 +00:00
|
|
|
* ensures we get a new login screen when the user logs out,
|
|
|
|
* if there isn't one.
|
|
|
|
*/
|
|
|
|
+ g_debug ("GdmLocalDisplayFactory: session_class = %s active_vt = %u", session_class, factory->active_vt);
|
|
|
|
if (is_local &&
|
|
|
|
- (g_strcmp0 (session_class, "greeter") != 0 || factory->active_vt == GDM_INITIAL_VT)) {
|
|
|
|
+ (g_strcmp0 (session_class, "greeter") != 0 || factory->active_vt == GDM_INITIAL_VT
|
|
|
|
+ || factory->active_vt == 0)) {
|
|
|
|
/* reset num failures */
|
|
|
|
factory->num_failures = 0;
|
|
|
|
|
2023-03-20 12:50:07 +00:00
|
|
|
--- a/daemon/gdm-manager.c
|
|
|
|
+++ b/daemon/gdm-manager.c
|
|
|
|
@@ -1553,7 +1553,8 @@ on_display_status_changed (GdmDisplay *d
|
2022-03-21 09:04:49 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
- g_object_set_data (G_OBJECT (display), "gdm-user-session", NULL);
|
|
|
|
+ if (getenv ("GDM_DISABLE_USER_DISPLAY_SERVER") == NULL )
|
|
|
|
+ g_object_set_data (G_OBJECT (display), "gdm-user-session", NULL);
|
|
|
|
|
2023-03-20 12:50:07 +00:00
|
|
|
if (display == manager->automatic_login_display) {
|
|
|
|
g_clear_weak_pointer (&manager->automatic_login_display);
|