This is probably a bit useless now we have modern multi-seat support and you can set this in the xserver-command anyway.
test-autologin-new-authtok \
test-autologin-timeout-gobject \
test-autologin-guest-timeout-gobject \
+ test-xserver-config-layout \
test-allow-tcp-xorg-1.16 \
test-allow-tcp-xorg-1.17 \
test-change-authentication \
scripts/xdmcp-server-guest.conf \
scripts/xdmcp-server-login.conf \
scripts/xdmcp-server-open-file-descriptors.conf \
+ scripts/xserver-config-layout.conf \
scripts/xserver-fail-start.conf \
scripts/xserver-no-share.conf \
scripts/seatdefaults-still-supported.conf
--- /dev/null
+#
+# Check xserver-layout option works
+#
+
+[Seat:*]
+autologin-user=have-password1
+user-session=default
+xserver-layout=custom
+
+#?*START-DAEMON
+#?RUNNER DAEMON-START
+
+# X server starts
+#?XSERVER-0 START LAYOUT=custom VT=7 SEAT=seat0
+
+# Daemon connects when X server is ready
+#?*XSERVER-0 INDICATE-READY
+#?XSERVER-0 INDICATE-READY
+#?XSERVER-0 ACCEPT-CONNECT
+
+# Session starts
+#?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1
+#?LOGIN1 ACTIVATE-SESSION SESSION=c0
+#?XSERVER-0 ACCEPT-CONNECT
+#?SESSION-X-0 CONNECT-XSERVER
+
+# Cleanup
+#?*STOP-DAEMON
+#?SESSION-X-0 TERMINATE SIGNAL=15
+#?XSERVER-0 TERMINATE SIGNAL=15
+#?RUNNER DAEMON-EXIT STATUS=0
/* TRUE if we allow Unix connections */
static gboolean listen_unix = TRUE;
+/* Configuration layout to use */
+static gchar *layout = NULL;
+
/* Path to authority database to use */
static gchar *auth_path = NULL;
{
display_number = atoi (arg + 1);
}
+ else if (strcmp (arg, "-layout") == 0)
+ {
+ layout = argv[i+1];
+ i++;
+ }
else if (strcmp (arg, "-auth") == 0)
{
auth_path = argv[i+1];
{
g_printerr ("Unrecognized option: %s\n"
"Use: %s [:<display>] [option]\n"
+ "-layout name Specify the ServerLayout section name\n"
"-auth file Select authorization file\n"
"-nolisten protocol Don't listen on protocol\n"
"-listen protocol Listen on protocol\n"
status_text = g_string_new ("");
g_string_printf (status_text, "%s START", id);
+ if (layout)
+ g_string_append_printf (status_text, " LAYOUT=%s", layout);
if (vt_number >= 0)
g_string_append_printf (status_text, " VT=%d", vt_number);
if (listen_tcp)