diff options
author | Ray Strode <halfline@gmail.com> | 2022-01-11 18:04:02 +0000 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2022-01-11 18:04:02 +0000 |
commit | 1e172ad8045f9a4f58b961f0870f488dbca239b2 (patch) | |
tree | fe468f2985c2c88c901287447f1111371c3ead81 | |
parent | 22c1544bc77971652da67c17cd876d4f81002294 (diff) | |
parent | 5cc096cebc7aaf494a01d58a699eb7cf39bbefd8 (diff) | |
download | gdm-1e172ad8045f9a4f58b961f0870f488dbca239b2.tar.gz |
Merge branch 'wip/xiaoguang/restart-greeter-session' into 'main'
local-display-factory: restart greeter session when crashed
See merge request GNOME/gdm!166
-rw-r--r-- | daemon/gdm-local-display-factory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/gdm-local-display-factory.c b/daemon/gdm-local-display-factory.c index c00e1c47..1b43d0c1 100644 --- a/daemon/gdm-local-display-factory.c +++ b/daemon/gdm-local-display-factory.c @@ -539,7 +539,8 @@ on_display_status_changed (GdmDisplay *display, * ensures we get a new login screen when the user logs out, * if there isn't one. */ - if (is_local && g_strcmp0 (session_class, "greeter") != 0) { + if (is_local && + (g_strcmp0 (session_class, "greeter") != 0 || factory->active_vt == GDM_INITIAL_VT)) { /* reset num failures */ factory->num_failures = 0; |