#greeter-show-remote-login=true
#user-session=default
#allow-guest=true
-#guest-session=UNIMPLEMENTED
+#guest-session=
#session-wrapper=lightdm-session
#greeter-wrapper=
#guest-wrapper=
SessionConfig *session_config;
Session *session;
+ if (!session_name)
+ session_name = seat_get_string_property (seat, "guest-session");
if (!session_name)
session_name = seat_get_string_property (seat, "user-session");
sessions_dir = config_get_string (config_get_instance (), "LightDM", "sessions-directory");
test-autologin-logout \
test-autologin-previous-session \
test-autologin-guest \
+ test-autologin-guest-session-config \
test-autologin-guest-fail-setup-script \
test-autologin-guest-logout \
test-guest-wrapper \
+ test-login-guest-session-config \
test-group-membership \
test-xdg-current-desktop \
test-xdg-seat \
scripts/autologin-guest.conf \
scripts/autologin-guest-fail-setup-script.conf \
scripts/autologin-guest-logout.conf \
+ scripts/autologin-guest-session-config.conf \
scripts/autologin-guest-timeout.conf \
scripts/autologin-in-background.conf \
scripts/autologin-invalid-greeter.conf \
scripts/login-guest-logout.conf \
scripts/login-guest-pick-session.conf \
scripts/login-guest-no-setup-script.conf \
+ scripts/login-guest-session-config.conf \
scripts/login-info-prompt.conf \
scripts/login-invalid-greeter.conf \
scripts/login-invalid-session.conf \
--- /dev/null
+#
+# Check automatic guest sessions use configured session
+#
+
+[SeatDefaults]
+autologin-guest=true
+user-session=default
+guest-session=alternative
+
+#?*START-DAEMON
+#?RUNNER DAEMON-START
+
+# X server starts
+#?XSERVER-0 START VT=7 SEAT=seat0
+
+# Daemon connects when X server is ready
+#?*XSERVER-0 INDICATE-READY
+#?XSERVER-0 INDICATE-READY
+#?XSERVER-0 ACCEPT-CONNECT
+
+# Guest account created
+#?GUEST-ACCOUNT ADD USERNAME=guest-.*
+
+# Guest session starts
+#?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/guest-.* DESKTOP_SESSION=alternative NAME=alternative USER=guest-.*
+#?XSERVER-0 ACCEPT-CONNECT
+#?SESSION-X-0 CONNECT-XSERVER
+
+# Cleanup
+#?*STOP-DAEMON
+#?SESSION-X-0 TERMINATE SIGNAL=15
+#?XSERVER-0 TERMINATE SIGNAL=15
+#?GUEST-ACCOUNT REMOVE USERNAME=guest.*
+#?RUNNER DAEMON-EXIT STATUS=0
+
--- /dev/null
+#
+# Check guest logins use configured session
+#
+
+[SeatDefaults]
+user-session=default
+guest-session=alternative
+
+#?*START-DAEMON
+#?RUNNER DAEMON-START
+
+# X server starts
+#?XSERVER-0 START VT=7 SEAT=seat0
+
+# Daemon connects when X server is ready
+#?*XSERVER-0 INDICATE-READY
+#?XSERVER-0 INDICATE-READY
+#?XSERVER-0 ACCEPT-CONNECT
+
+# Greeter starts
+#?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter
+#?XSERVER-0 ACCEPT-CONNECT
+#?GREETER-X-0 CONNECT-XSERVER
+#?GREETER-X-0 CONNECT-TO-DAEMON
+#?GREETER-X-0 CONNECTED-TO-DAEMON
+
+# Login as guest
+#?*GREETER-X-0 AUTHENTICATE-GUEST
+#?GREETER-X-0 AUTHENTICATION-COMPLETE AUTHENTICATED=TRUE
+#?*GREETER-X-0 START-SESSION
+#?GREETER-X-0 TERMINATE SIGNAL=15
+
+# Guest account created
+#?GUEST-ACCOUNT ADD USERNAME=guest-.*
+
+# Guest session starts
+#?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/guest-.* DESKTOP_SESSION=alternative NAME=alternative USER=guest-.*
+#?XSERVER-0 ACCEPT-CONNECT
+#?SESSION-X-0 CONNECT-XSERVER
+
+# Cleanup
+#?*STOP-DAEMON
+#?SESSION-X-0 TERMINATE SIGNAL=15
+#?XSERVER-0 TERMINATE SIGNAL=15
+#?GUEST-ACCOUNT REMOVE USERNAME=guest-.*
+#?RUNNER DAEMON-EXIT STATUS=0
--- /dev/null
+#!/bin/sh
+./src/dbus-env ./src/test-runner autologin-guest-session-config test-gobject-greeter
--- /dev/null
+#!/bin/sh
+./src/dbus-env ./src/test-runner login-guest-session-config test-gobject-greeter