1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
Description: The X.org X server 1.17 doesn't listen on TCP by default, we need to pass -listen to enable it
Author: Robert Ancell <robert.ancell@canonical.com>
Bug: https://bugs.launchpad.net/bugs/1449282
=== modified file 'src/x-server-local.c'
Index: 1.16/src/x-server-local.c
===================================================================
--- 1.16.orig/src/x-server-local.c
+++ 1.16/src/x-server-local.c
@@ -477,6 +477,7 @@ x_server_local_start (DisplayServer *dis
/* Connect to a remote server using XDMCP */
if (server->priv->xdmcp_server != NULL)
{
+ g_string_append (command, " -listen tcp");
if (server->priv->xdmcp_port != 0)
g_string_append_printf (command, " -port %d", server->priv->xdmcp_port);
g_string_append_printf (command, " -query %s", server->priv->xdmcp_server);
@@ -485,6 +486,8 @@ x_server_local_start (DisplayServer *dis
}
else if (!server->priv->allow_tcp)
g_string_append (command, " -nolisten tcp");
+ else
+ g_string_append (command, " -listen tcp");
if (server->priv->vt >= 0)
g_string_append_printf (command, " vt%d -novtswitch", server->priv->vt);
|