[gdm] manager: don't use wayland for autologin if wayland disabled
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] manager: don't use wayland for autologin if wayland disabled
- Date: Mon, 9 Nov 2015 19:28:42 +0000 (UTC)
commit 65f560ab551cbbf7d9b6f8298ee5ce125912804a
Author: Ray Strode <rstrode redhat com>
Date: Mon Nov 9 14:25:22 2015 -0500
manager: don't use wayland for autologin if wayland disabled
These days we default to using wayland user sessions if the
unless greeter isn't wayland. But in the case of automatic
login there is no greeter.
This commit makes automatic login ignore wayland sessions if
wayland is disabled in the config file. This gives us symetry
with the greeter case, and provides a way for users to opt
out of wayland.
https://bugzilla.gnome.org/show_bug.cgi?id=757715
daemon/gdm-manager.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index 2c76540..2ef4f9a 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -1327,15 +1327,26 @@ set_up_automatic_login_session (GdmManager *manager,
GdmDisplay *display)
{
GdmSession *session;
+ char *display_session_type = NULL;
gboolean is_initial;
+ gboolean greeter_would_have_been_wayland;
/* 0 is root user; since the daemon talks to the session object
* directly, itself, for automatic login
*/
session = create_embryonic_user_session_for_display (manager, display, 0);
- g_object_get (G_OBJECT (display), "is-initial", &is_initial, NULL);
- g_object_set (G_OBJECT (session), "display-is-initial", is_initial, NULL);
+ g_object_get (G_OBJECT (display),
+ "is-initial", &is_initial,
+ "session-type", &display_session_type,
+ NULL);
+
+ greeter_would_have_been_wayland = g_strcmp0 (display_session_type, "wayland") == 0;
+
+ g_object_set (G_OBJECT (session),
+ "display-is-initial", is_initial,
+ "ignore-wayland", !greeter_would_have_been_wayland,
+ NULL);
g_debug ("GdmManager: Starting automatic login conversation");
gdm_session_start_conversation (session, "gdm-autologin");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]