summaryrefslogtreecommitdiff
path: root/tests/scripts/unity-script-hooks.conf
blob: aa7db1e54bafee58a2cb0c7633dfd7b058dada44 (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
#
# Check LightDM runs the script hooks correctly for autologin and the greeter
#

[Seat:*]
type=unity
display-setup-script=test-script-hook DISPLAY-SETUP
display-stopped-script=test-script-hook DISPLAY-STOPPED
greeter-setup-script=test-script-hook GREETER-SETUP
session-setup-script=test-script-hook SESSION-SETUP
session-cleanup-script=test-script-hook SESSION-CLEANUP
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

#?SCRIPT-HOOK DISPLAY-SETUP XDG_SEAT=seat0
#?SCRIPT-HOOK SESSION-SETUP XDG_SEAT=seat0 USER=have-password1

# 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

# Logout session
#?*SESSION-X-0 LOGOUT

# Script hook runs
#?SCRIPT-HOOK SESSION-CLEANUP XDG_SEAT=seat0 USER=have-password1

# X server stops
#?XMIR-0 TERMINATE SIGNAL=15

# Script hooks run
#?SCRIPT-HOOK DISPLAY-STOPPED XDG_SEAT=seat0

# 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

# Script hooks run
#?SCRIPT-HOOK DISPLAY-SETUP XDG_SEAT=seat0
#?SCRIPT-HOOK GREETER-SETUP XDG_SEAT=seat0 USER=.*

# 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 session
#?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-1

# Cleanup
#?*STOP-DAEMON
#?GREETER-X-1 TERMINATE SIGNAL=15
#?XMIR-1 TERMINATE SIGNAL=15

# Script hooks run
#?SCRIPT-HOOK DISPLAY-STOPPED XDG_SEAT=seat0

# Finish cleanup
#?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15
#?RUNNER DAEMON-EXIT STATUS=0