]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - tests/scripts/unity-script-hooks.conf
Allow guest sessions more access to the upstart session socket
[sojka/lightdm.git] / tests / scripts / unity-script-hooks.conf
1 #
2 # Check LightDM runs the script hooks correctly for autologin and the greeter
3 #
4
5 [Seat:*]
6 type=unity
7 display-setup-script=test-script-hook DISPLAY-SETUP
8 display-stopped-script=test-script-hook DISPLAY-STOPPED
9 greeter-setup-script=test-script-hook GREETER-SETUP
10 session-setup-script=test-script-hook SESSION-SETUP
11 session-cleanup-script=test-script-hook SESSION-CLEANUP
12 autologin-user=have-password1
13 user-session=default
14
15 #?*START-DAEMON
16 #?RUNNER DAEMON-START
17
18 # System compositor starts
19 #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7
20 #?*UNITY-SYSTEM-COMPOSITOR READY
21
22 # X server starts
23 #?XMIR-0 START SEAT=seat0 MIR-ID=x-0
24
25 # Daemon connects when X server is ready
26 #?*XMIR-0 INDICATE-READY
27 #?XMIR-0 INDICATE-READY
28 #?XMIR-0 ACCEPT-CONNECT
29
30 #?SCRIPT-HOOK DISPLAY-SETUP
31 #?SCRIPT-HOOK SESSION-SETUP USER=have-password1
32
33 # Session starts
34 #?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
35 #?LOGIN1 ACTIVATE-SESSION SESSION=c0
36 #?XMIR-0 ACCEPT-CONNECT
37 #?SESSION-X-0 CONNECT-XSERVER
38
39 # System compositor switches to session
40 #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0
41
42 # Logout session
43 #?*SESSION-X-0 LOGOUT
44
45 # Script hook runs
46 #?SCRIPT-HOOK SESSION-CLEANUP USER=have-password1
47
48 # X server stops
49 #?XMIR-0 TERMINATE SIGNAL=15
50
51 # Script hooks run
52 #?SCRIPT-HOOK DISPLAY-STOPPED
53
54 # X server starts
55 #?XMIR-1 START SEAT=seat0 MIR-ID=x-1
56
57 # Daemon connects when X server is ready
58 #?*XMIR-1 INDICATE-READY
59 #?XMIR-1 INDICATE-READY
60 #?XMIR-1 ACCEPT-CONNECT
61
62 # Script hooks run
63 #?SCRIPT-HOOK DISPLAY-SETUP
64 #?SCRIPT-HOOK GREETER-SETUP USER=.*
65
66 # Greeter starts
67 #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter
68 #?LOGIN1 ACTIVATE-SESSION SESSION=c1
69 #?XMIR-1 ACCEPT-CONNECT
70 #?GREETER-X-1 CONNECT-XSERVER
71 #?GREETER-X-1 CONNECT-TO-DAEMON
72 #?GREETER-X-1 CONNECTED-TO-DAEMON
73
74 # System compositor switches to session
75 #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-1
76
77 # Cleanup
78 #?*STOP-DAEMON
79 #?GREETER-X-1 TERMINATE SIGNAL=15
80 #?XMIR-1 TERMINATE SIGNAL=15
81
82 # Script hooks run
83 #?SCRIPT-HOOK DISPLAY-STOPPED
84
85 # Finish cleanup
86 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15
87 #?RUNNER DAEMON-EXIT STATUS=0