From 10f8add3b6f75113676812ef52e32823f91afb44 Mon Sep 17 00:00:00 2001
From: si-gui <245140120@qq.com>
Date: Fri, 18 Dec 2020 15:18:09 +0800
Subject: [PATCH] gdm should recover automatically

---
 data/gdm.service.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/data/gdm.service.in b/data/gdm.service.in
index 72201c1..d2892b8 100644
--- a/data/gdm.service.in
+++ b/data/gdm.service.in
@@ -20,6 +20,7 @@ After=rc-local.service plymouth-start.service systemd-user-sessions.service
 OnFailure=plymouth-quit.service
 
 [Service]
+ExecStartPre=/bin/sh -c "systemctl stop session-c*.scope"
 ExecStart=${sbindir}/gdm
 KillMode=mixed
 Restart=always
-- 
2.23.0

