[gdm] manager: make sure user session displays have a seat assigned



commit 3499aab05e60bf4fe2b9694b9ce9bde7bf2aa54a
Author: Ray Strode <rstrode redhat com>
Date:   Wed Sep 9 15:52:31 2015 -0400

    manager: make sure user session displays have a seat assigned
    
    The local display factory expects all displays it tracks to have
    a seat, and we're going to be tracking automatic login displays
    in the display factory in a subsequent commit.
    
    This commit makes sure the seat-id is properly set on automatic
    login display objects.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749418

 daemon/gdm-manager.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index c9e807d..2698125 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -1514,11 +1514,14 @@ create_display_for_user_session (GdmManager *self,
                                  const char *session_id)
 {
         GdmDisplay *display;
+        /* at the moment we only create GdmLocalDisplay objects on seat0 */
+        const char *seat_id = "seat0";
 
         display = gdm_local_display_new ();
 
         g_object_set (G_OBJECT (display),
                       "session-class", "user",
+                      "seat-id", seat_id,
                       "session-id", session_id,
                       NULL);
         gdm_display_store_add (self->priv->display_store,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]