From dcdbaaa04012541ad2813cf83559d91d52f208b9 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 10 Dec 2020 15:14:20 -0500 Subject: session-worker: Don't switch back VTs until session is fully exited There's a race condition on shutdown where the session worker is switching VTs back to the initial VT at the same time as the session exit is being processed. This means that manager may try to start a login screen (because of the VT switch) when autologin is enabled when there shouldn't be a login screen. This commit makes sure both the PostSession script, and session-exited signal emission are complete before initiating the VT switch back to the initial VT. https://gitlab.gnome.org/GNOME/gdm/-/issues/660 --- daemon/meson.build | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'daemon/meson.build') diff --git a/daemon/meson.build b/daemon/meson.build index 72c7c3c1..2e61b644 100644 --- a/daemon/meson.build +++ b/daemon/meson.build @@ -1,4 +1,10 @@ # D-Bus interfaces +dbus_gen = gnome.gdbus_codegen('gdm-dbus-glue', + 'org.freedesktop.DBus.xml', + namespace: 'GdmDBus', + interface_prefix: 'org.freedesktop.DBus', + autocleanup: 'all', +) display_dbus_gen = gnome.gdbus_codegen('gdm-display-glue', 'gdm-display.xml', namespace: 'GdmDBus', @@ -87,6 +93,7 @@ gdm_session_worker_src = [ 'gdm-session-worker-job.c', 'gdm-session-worker-common.c', 'gdm-dbus-util.c', + dbus_gen, session_dbus_gen, session_worker_dbus_gen, gdm_session_enums, -- cgit v1.2.1