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

[Seat:*]
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=mir

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

# System compositor starts
#?UNITY-SYSTEM-COMPOSITOR START FILE=/run/lightdm-mir-0 VT=7 ENABLE-HARDWARE-CURSOR=TRUE XDG_VTNR=7
#?*UNITY-SYSTEM-COMPOSITOR READY

# Script hooks run
#?SCRIPT-HOOK DISPLAY-SETUP
#?SCRIPT-HOOK SESSION-SETUP USER=have-password1

# Session starts
#?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=have-password1
#?LOGIN1 ACTIVATE-SESSION SESSION=c0

# Session shown
#?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0

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

# Script hooks runs
#?SCRIPT-HOOK SESSION-CLEANUP USER=have-password1

# System compositor stops
#?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15

# Script hooks run
#?SCRIPT-HOOK DISPLAY-STOPPED

# System compositor starts
#?UNITY-SYSTEM-COMPOSITOR START FILE=/run/lightdm-mir-0 VT=7 ENABLE-HARDWARE-CURSOR=TRUE XDG_VTNR=7
#?*UNITY-SYSTEM-COMPOSITOR READY

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

# Greeter starts
#?GREETER-MIR-greeter-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter
#?LOGIN1 ACTIVATE-SESSION SESSION=c1
#?GREETER-MIR-greeter-0 CONNECT-TO-DAEMON
# FIXME: Not occurring?
#?GREETER-MIR-greeter-0 CONNECTED-TO-DAEMON

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

# Cleanup
#?*STOP-DAEMON
#?GREETER-MIR-greeter-0 TERMINATE SIGNAL=15
#?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15

# Script hooks run
#?SCRIPT-HOOK DISPLAY-STOPPED

# Finish cleanup
#?RUNNER DAEMON-EXIT STATUS=0