diff options
author | Ray Strode <rstrode@redhat.com> | 2021-09-14 11:00:33 -0400 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2021-09-29 14:24:00 +0000 |
commit | 5be71031bd3fb0a9681134af7a9e0eb35a057797 (patch) | |
tree | b5df8be32385523894035aa7aab5329e678637df | |
parent | 545d2c6c429eed499c74be83932678548b13c53c (diff) | |
download | gdm-5be71031bd3fb0a9681134af7a9e0eb35a057797.tar.gz |
xdmcp-display-factory: Set supported session types for XDMCP displaysfix-xdmcp
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); |