diff options
author | Ray Strode <rstrode@redhat.com> | 2021-09-14 11:00:33 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2022-03-07 10:29:22 -0500 |
commit | 5004985a4b55f5bcb40876d170524fa2ebd17637 (patch) | |
tree | f6827bec99b89b6e082ac16ca732b32cfff6767b | |
parent | 881455d1f1d4ce4be051dbcaef8acbb7b64bff9d (diff) | |
download | gdm-5004985a4b55f5bcb40876d170524fa2ebd17637.tar.gz |
xdmcp-display-factory: Set supported session types for XDMCP displays
The lower levels of GDM now expect the session types supported by a
display to be specified up front.
This commit makes sure XDMCP displays do that.
-rw-r--r-- | daemon/gdm-xdmcp-display-factory.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/daemon/gdm-xdmcp-display-factory.c b/daemon/gdm-xdmcp-display-factory.c index ce8f026e..abb58fae 100644 --- a/daemon/gdm-xdmcp-display-factory.c +++ b/daemon/gdm-xdmcp-display-factory.c @@ -2131,6 +2131,7 @@ gdm_xdmcp_display_create (GdmXdmcpDisplayFactory *factory, GdmDisplay *display; GdmDisplayStore *store; gboolean use_chooser; + const char *session_types[] = { "x11", NULL }; g_debug ("GdmXdmcpDisplayFactory: Creating xdmcp display for %s:%d", hostname ? hostname : "(null)", displaynum); @@ -2165,6 +2166,11 @@ gdm_xdmcp_display_create (GdmXdmcpDisplayFactory *factory, goto out; } + g_object_set (G_OBJECT (display), + "session-type", session_types[0], + "supported-session-types", session_types, + NULL); + if (! gdm_display_prepare (display)) { gdm_display_unmanage (display); g_object_unref (display); |