~niedbalski/ubuntu/vivid/lightdm/disable-nocpp

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2014-09-30 15:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20140930151151-qnewlpmhhou8u25w
Tags: 1.12.0-0ubuntu1
* New upstream release:
  - Fix assumption that the display server is X when running scripts.
    (LP: #1305006)
  - Don't access .dmrc files until information from these files is required.
    (LP: #1370852)
* debian/patches/01_transition_ubuntu2d_ubuntu_desktop.patch:
  - Dropped, Unity 2D doesn't exist and all users will have been migrated in
    14.04 LTS

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
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
#?XSERVER-0 START SEAT=seat0 MIR-ID=x-0
 
24
 
 
25
# Daemon connects when X server is ready
 
26
#?*XSERVER-0 INDICATE-READY
 
27
#?XSERVER-0 INDICATE-READY
 
28
#?XSERVER-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
#?XSERVER-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
#?XSERVER-0 TERMINATE SIGNAL=15
 
50
 
 
51
# Script hooks run
 
52
#?SCRIPT-HOOK DISPLAY-STOPPED
 
53
 
 
54
# X server starts
 
55
#?XSERVER-1 START SEAT=seat0 MIR-ID=x-1
 
56
 
 
57
# Daemon connects when X server is ready
 
58
#?*XSERVER-1 INDICATE-READY
 
59
#?XSERVER-1 INDICATE-READY
 
60
#?XSERVER-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
#?XSERVER-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
#?XSERVER-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