~lightdm-team/lightdm/1.4

« back to all changes in this revision

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

  • Committer: Robert Ancell
  • Date: 2014-03-13 02:15:38 UTC
  • Revision ID: robert.ancell@canonical.com-20140313021538-u2mxfxrrfw5u58ic
Tags: 1.4.7
Releasing 1.4.7

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
greeter-setup-script=test-script-hook GREETER-SETUP
 
8
session-setup-script=test-script-hook SESSION-SETUP
 
9
session-cleanup-script=test-script-hook SESSION-CLEANUP
 
10
autologin-user=have-password1
 
11
user-session=default
 
12
 
 
13
#?RUNNER DAEMON-START
 
14
 
 
15
# One X server should start by default
 
16
#?XSERVER-0 START VT=7
 
17
 
 
18
# Daemon connects when X server is ready
 
19
#?*XSERVER-0 INDICATE-READY
 
20
#?XSERVER-0 INDICATE-READY
 
21
#?XSERVER-0 ACCEPT-CONNECT
 
22
 
 
23
# Script hooks run
 
24
#?SCRIPT-HOOK DISPLAY-SETUP
 
25
#?SCRIPT-HOOK SESSION-SETUP
 
26
 
 
27
# Session starts
 
28
#?SESSION-X-0 START XDG_SESSION_COOKIE=ck-cookie-x:0 USER=have-password1
 
29
#?XSERVER-0 ACCEPT-CONNECT
 
30
#?SESSION-X-0 CONNECT-XSERVER
 
31
 
 
32
# Logout session
 
33
#?*SESSION-X-0 LOGOUT
 
34
 
 
35
# Script hook runs
 
36
#?SCRIPT-HOOK SESSION-CLEANUP
 
37
 
 
38
# X server stops
 
39
#?XSERVER-0 TERMINATE SIGNAL=15
 
40
 
 
41
# X server starts
 
42
#?XSERVER-0 START VT=7
 
43
 
 
44
# Daemon connects when X server is ready
 
45
#?*XSERVER-0 INDICATE-READY
 
46
#?XSERVER-0 INDICATE-READY
 
47
#?XSERVER-0 ACCEPT-CONNECT
 
48
 
 
49
# Script hooks run
 
50
#?SCRIPT-HOOK DISPLAY-SETUP
 
51
#?SCRIPT-HOOK GREETER-SETUP
 
52
 
 
53
# Greeter starts
 
54
#?GREETER-X-0 START XDG_SESSION_COOKIE=ck-cookie-x:0
 
55
#?XSERVER-0 ACCEPT-CONNECT
 
56
#?GREETER-X-0 CONNECT-XSERVER
 
57
#?GREETER-X-0 CONNECT-TO-DAEMON
 
58
#?GREETER-X-0 CONNECTED-TO-DAEMON
 
59
 
 
60
# Cleanup
 
61
#?*STOP-DAEMON
 
62
#?GREETER-X-0 TERMINATE SIGNAL=15
 
63
#?XSERVER-0 TERMINATE SIGNAL=15
 
64
#?RUNNER DAEMON-EXIT STATUS=0