summaryrefslogtreecommitdiff
path: root/tests/scripts/unity-switch.conf
blob: 51cf79d11a2368c3cfdf15752b7c7cae960c1138 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#
# Check system compositor correctly switches X sessions
#

[Seat:*]
type=unity
autologin-user=have-password1
user-session=default

#?*START-DAEMON
#?RUNNER DAEMON-START

# System compositor starts
#?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7
#?*UNITY-SYSTEM-COMPOSITOR READY

# X server starts
#?XMIR-0 START SEAT=seat0 MIR-ID=x-0

# Daemon connects when X server is ready
#?*XMIR-0 INDICATE-READY
#?XMIR-0 INDICATE-READY
#?XMIR-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
#?XMIR-0 ACCEPT-CONNECT
#?SESSION-X-0 CONNECT-XSERVER

# System compositor switches to session
#?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0

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

# New X server starts
#?XMIR-1 START SEAT=seat0 MIR-ID=x-1

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

# Lock session
#?LOGIN1 LOCK-SESSION SESSION=c0

# Greeter starts
#?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter
#?LOGIN1 ACTIVATE-SESSION SESSION=c1
#?XMIR-1 ACCEPT-CONNECT
#?GREETER-X-1 CONNECT-XSERVER
#?GREETER-X-1 CONNECT-TO-DAEMON
#?GREETER-X-1 CONNECTED-TO-DAEMON

# System compositor switches to greeter
#?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-1

# Login
#?*GREETER-X-1 AUTHENTICATE USERNAME=no-password1
#?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE
#?*GREETER-X-1 START-SESSION
#?GREETER-X-1 TERMINATE SIGNAL=15

# New session starts
#?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1
#?LOGIN1 ACTIVATE-SESSION SESSION=c2
#?XMIR-1 ACCEPT-CONNECT
#?SESSION-X-1 CONNECT-XSERVER

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

# X server starts
#?XMIR-2 START SEAT=seat0 MIR-ID=x-2
#?*XMIR-2 INDICATE-READY
#?XMIR-2 INDICATE-READY
#?XMIR-2 ACCEPT-CONNECT

# Greeter starts
#?GREETER-X-2 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter
#?LOGIN1 ACTIVATE-SESSION SESSION=c3
#?XMIR-2 ACCEPT-CONNECT
#?GREETER-X-2 CONNECT-XSERVER
#?GREETER-X-2 CONNECT-TO-DAEMON
#?GREETER-X-2 CONNECTED-TO-DAEMON

# System compositor switches to greeter
#?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-2

# Cleanup
#?*STOP-DAEMON
#?SESSION-X-0 TERMINATE SIGNAL=15
#?XMIR-0 TERMINATE SIGNAL=15
#?GREETER-X-2 TERMINATE SIGNAL=15
#?XMIR-2 TERMINATE SIGNAL=15
#?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15
#?RUNNER DAEMON-EXIT STATUS=0