blob: d8c2813b539c6cc285d41fcde7f23174ad204843 (
plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#
# Check D-Bus interface can trigger/switch to guest session
#
[LightDM]
disable-guest-wrapper=true
[SeatDefaults]
autologin-user=have-password1
user-session=default
#?RUNNER DAEMON-START
#?*WAIT
# 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
# Default session starts
#?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 USER=have-password1
#?XSERVER-0 ACCEPT-CONNECT
#?SESSION-X-0 CONNECT-XSERVER
# Switch to guest
#?*SWITCH-TO-GUEST
#?RUNNER SWITCH-TO-GUEST
# 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
#?LOGIN1 LOCK-SESSION
# Switch to session
#?VT ACTIVATE VT=8
# Guest account created
#?GUEST-ACCOUNT ADD USERNAME=guest-.*
# Guest session starts
#?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 USER=guest-.*
#?XSERVER-1 ACCEPT-CONNECT
#?SESSION-X-1 CONNECT-XSERVER
# Switch again, should not do anything as guest already running
#?*SWITCH-TO-GUEST
#?RUNNER SWITCH-TO-GUEST
#?*WAIT
# Cleanup
#?*STOP-DAEMON
#?SESSION-X-0 TERMINATE SIGNAL=15
#?XSERVER-0 TERMINATE SIGNAL=15
#?SESSION-X-1 TERMINATE SIGNAL=15
#?XSERVER-1 TERMINATE SIGNAL=15
#?GUEST-ACCOUNT REMOVE USERNAME=guest-.*
#?RUNNER DAEMON-EXIT STATUS=0
|