Merge lp:~ubuntu-multiseat/lightdm/drop-sharevts into lp:lightdm

Proposed by Laércio de Sousa
Status: Merged
Merged at revision: 2172
Proposed branch: lp:~ubuntu-multiseat/lightdm/drop-sharevts
Merge into: lp:lightdm
Diff against target: 63 lines (+0/-17)
3 files modified
src/seat-xlocal.c (+0/-2)
src/x-server-local.c (+0/-13)
src/x-server-local.h (+0/-2)
To merge this branch: bzr merge lp:~ubuntu-multiseat/lightdm/drop-sharevts
Reviewer Review Type Date Requested Status
Robert Ancell Approve
Review via email: mp+267954@code.launchpad.net

Description of the change

Drop Xorg option -sharevts. It's no longer required for non-seat0 X servers since xorg-server release 1.16.

See http://cgit.freedesktop.org/xorg/xserver/commit/?id=46cf2

To post a comment you must log in.
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Does this mean LightDM will break with X servers < 1.16? Unfortunately we don't know what version of Xorg we are using so I'm wary about breaking older systems.

Revision history for this message
Laércio de Sousa (lbssousa) wrote :

It _would_ potentially break with "old Xorg server + new LightDM + systemd-based multi-seat setup", which, I believe, is a very rare combination nowadays.

The only special case in my mind is Trusty, which ships xorg-server 1.15.1 by default. However, this package has received backported patches from 1.16 in trusty-updates repo, so it doesn't need -sharevts, too.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

I was thinking of other distributions using LightDM. But yeah, I suspect this combination is rare and supporting less code is nice. I updated the branch to also fix the tests.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/seat-xlocal.c'
2--- src/seat-xlocal.c 2015-07-28 08:38:40 +0000
3+++ src/seat-xlocal.c 2015-08-13 14:01:00 +0000
4@@ -198,8 +198,6 @@
5 x_server_local_set_layout (x_server, layout);
6
7 x_server_local_set_xdg_seat (x_server, seat_get_name (seat));
8- if (strcmp (seat_get_name (seat), "seat0") != 0)
9- x_server_local_set_sharevts (x_server, TRUE);
10
11 config_file = seat_get_string_property (seat, "xserver-config");
12 if (config_file)
13
14=== modified file 'src/x-server-local.c'
15--- src/x-server-local.c 2015-05-26 02:08:20 +0000
16+++ src/x-server-local.c 2015-08-13 14:01:00 +0000
17@@ -40,9 +40,6 @@
18 /* Value for -seat argument */
19 gchar *xdg_seat;
20
21- /* TRUE if should share VT with other X server */
22- gboolean sharevts;
23-
24 /* TRUE if TCP/IP connections are allowed */
25 gboolean allow_tcp;
26
27@@ -219,13 +216,6 @@
28 }
29
30 void
31-x_server_local_set_sharevts (XServerLocal *server, gboolean sharevts)
32-{
33- g_return_if_fail (server != NULL);
34- server->priv->sharevts = sharevts;
35-}
36-
37-void
38 x_server_local_set_allow_tcp (XServerLocal *server, gboolean allow_tcp)
39 {
40 g_return_if_fail (server != NULL);
41@@ -473,9 +463,6 @@
42 if (server->priv->xdg_seat)
43 g_string_append_printf (command, " -seat %s", server->priv->xdg_seat);
44
45- if (server->priv->sharevts)
46- g_string_append (command, " -sharevts");
47-
48 write_authority_file (server);
49 if (server->priv->authority_file)
50 g_string_append_printf (command, " -auth %s", server->priv->authority_file);
51
52=== modified file 'src/x-server-local.h'
53--- src/x-server-local.h 2014-09-19 03:16:14 +0000
54+++ src/x-server-local.h 2015-08-13 14:01:00 +0000
55@@ -51,8 +51,6 @@
56
57 void x_server_local_set_xdg_seat (XServerLocal *server, const gchar *xdg_seat);
58
59-void x_server_local_set_sharevts (XServerLocal *server, gboolean sharevts);
60-
61 void x_server_local_set_allow_tcp (XServerLocal *server, gboolean allow_tcp);
62
63 void x_server_local_set_xdmcp_server (XServerLocal *server, const gchar *hostname);

Subscribers

People subscribed via source and target branches