summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2021-09-14 11:00:33 -0400
committerRay Strode <halfline@gmail.com>2021-09-29 14:24:00 +0000
commit5be71031bd3fb0a9681134af7a9e0eb35a057797 (patch)
treeb5df8be32385523894035aa7aab5329e678637df
parent545d2c6c429eed499c74be83932678548b13c53c (diff)
downloadgdm-fix-xdmcp.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.c6
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);