#
# Use D-Bus interface to show the greeter, then start a new session and log out of it
#

[SeatDefaults]
autologin-user=have-password1
user-session=default

#?RUNNER DAEMON-START

# X server starts
#?XSERVER-0 START VT=7

# 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_SESSION_COOKIE=ck-cookie-x:0 USER=have-password1
#?XSERVER-0 ACCEPT-CONNECT
#?SESSION-X-0 CONNECT-XSERVER

# Show the greeter
#?*SWITCH-TO-GREETER
#?RUNNER SWITCH-TO-GREETER

# New X server starts
#?XSERVER-1 START VT=8

# Daemon connects when X server is ready
#?*XSERVER-1 INDICATE-READY
#?XSERVER-1 INDICATE-READY
#?XSERVER-1 ACCEPT-CONNECT

# Session is locked
#?CONSOLE-KIT LOCK-SESSION

# Greeter starts
#?GREETER-X-1 START XDG_SESSION_COOKIE=ck-cookie-x:1
#?XSERVER-1 ACCEPT-CONNECT
#?GREETER-X-1 CONNECT-XSERVER
#?GREETER-X-1 CONNECT-TO-DAEMON
#?GREETER-X-1 CONNECTED-TO-DAEMON

# Switch to greeter
#?VT ACTIVATE VT=8

# Login
#?*GREETER-X-1 AUTHENTICATE USERNAME=have-password2
#?GREETER-X-1 SHOW-PROMPT TEXT="Password:"
#?*GREETER-X-1 RESPOND TEXT="password"
#?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=have-password2 AUTHENTICATED=TRUE
#?*GREETER-X-1 START-SESSION
#?GREETER-X-1 TERMINATE SIGNAL=15

# New session starts
#?SESSION-X-1 START XDG_SESSION_COOKIE=ck-cookie-x:1 USER=have-password2
#?XSERVER-1 ACCEPT-CONNECT
#?SESSION-X-1 CONNECT-XSERVER

# Logout of new session
#?*SESSION-X-1 LOGOUT
#?XSERVER-1 TERMINATE SIGNAL=15

# X server starts
#?XSERVER-1 START VT=8
#?*XSERVER-1 INDICATE-READY
#?XSERVER-1 INDICATE-READY
#?XSERVER-1 ACCEPT-CONNECT

# Greeter starts
#?GREETER-X-1 START XDG_SESSION_COOKIE=ck-cookie-x:1
#?XSERVER-1 ACCEPT-CONNECT
#?GREETER-X-1 CONNECT-XSERVER
#?GREETER-X-1 CONNECT-TO-DAEMON
#?GREETER-X-1 CONNECTED-TO-DAEMON

# Cleanup
#?*STOP-DAEMON
#?SESSION-X-0 TERMINATE SIGNAL=15
#?XSERVER-0 TERMINATE SIGNAL=15
#?GREETER-X-1 TERMINATE SIGNAL=15
#?XSERVER-1 TERMINATE SIGNAL=15
#?RUNNER DAEMON-EXIT STATUS=0
