~robert-ancell/lightdm/dont-scan-all-users-1.10

« back to all changes in this revision

Viewing changes to tests/scripts/mir-script-hooks.conf

  • Committer: Robert Ancell
  • Date: 2014-09-16 04:09:51 UTC
  • Revision ID: robert.ancell@canonical.com-20140916040951-vgxn6js9jg5z2gpr
Fix assumption that the display server is X when running scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Check LightDM runs the script hooks correctly for autologin and the greeter
 
3
#
 
4
 
 
5
[SeatDefaults]
 
6
display-setup-script=test-script-hook DISPLAY-SETUP
 
7
display-stopped-script=test-script-hook DISPLAY-STOPPED
 
8
greeter-setup-script=test-script-hook GREETER-SETUP
 
9
session-setup-script=test-script-hook SESSION-SETUP
 
10
session-cleanup-script=test-script-hook SESSION-CLEANUP
 
11
autologin-user=have-password1
 
12
user-session=mir
 
13
 
 
14
#?*START-DAEMON
 
15
#?RUNNER DAEMON-START
 
16
 
 
17
# System compositor starts
 
18
#?UNITY-SYSTEM-COMPOSITOR START FILE=/tmp/lightdm-mir-0 VT=7 ENABLE-HARDWARE-CURSOR=TRUE XDG_VTNR=7
 
19
#?*UNITY-SYSTEM-COMPOSITOR READY
 
20
 
 
21
# Script hooks run
 
22
#?SCRIPT-HOOK DISPLAY-SETUP
 
23
#?SCRIPT-HOOK SESSION-SETUP USER=have-password1
 
24
 
 
25
# Session starts
 
26
#?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 DESKTOP_SESSION=mir USER=have-password1
 
27
#?LOGIN1 ACTIVATE-SESSION SESSION=c0
 
28
 
 
29
# Session shown
 
30
#?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0
 
31
 
 
32
# Logout session
 
33
#?*SESSION-MIR-session-0 LOGOUT
 
34
 
 
35
# Script hooks runs
 
36
#?SCRIPT-HOOK SESSION-CLEANUP USER=have-password1
 
37
 
 
38
# System compositor stops
 
39
#?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15
 
40
 
 
41
# Script hooks run
 
42
#?SCRIPT-HOOK DISPLAY-STOPPED
 
43
 
 
44
# System compositor starts
 
45
#?UNITY-SYSTEM-COMPOSITOR START FILE=/tmp/lightdm-mir-0 VT=7 ENABLE-HARDWARE-CURSOR=TRUE XDG_VTNR=7
 
46
#?*UNITY-SYSTEM-COMPOSITOR READY
 
47
 
 
48
# Script hooks run
 
49
#?SCRIPT-HOOK DISPLAY-SETUP
 
50
#?SCRIPT-HOOK GREETER-SETUP USER=.*
 
51
 
 
52
# Greeter starts
 
53
#?GREETER-MIR-greeter-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter
 
54
#?LOGIN1 ACTIVATE-SESSION SESSION=c1
 
55
#?GREETER-MIR-greeter-0 CONNECT-TO-DAEMON
 
56
# FIXME: Not occurring?
 
57
#?GREETER-MIR-greeter-0 CONNECTED-TO-DAEMON
 
58
 
 
59
# System compositor switches to greeter
 
60
#?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=greeter-0
 
61
 
 
62
# Cleanup
 
63
#?*STOP-DAEMON
 
64
#?GREETER-MIR-greeter-0 TERMINATE SIGNAL=15
 
65
#?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15
 
66
 
 
67
# Script hooks run
 
68
#?SCRIPT-HOOK DISPLAY-STOPPED
 
69
 
 
70
# Finish cleanup
 
71
#?RUNNER DAEMON-EXIT STATUS=0