1description "Welcome to Ubuntu"
2author "Michael Terry <michael.terry@canonical.com>"
4start on starting unity8
9# If you change this, also change it in the cleanup upstart job
10env RUN_FILE=".config/ubuntu-system-settings/wizard-has-run"
13 if [ -e "$HOME/$RUN_FILE" ]; then
14 initctl set-env WIZARD_SKIPPED=true
17 # Stop unity8, we'll start it again in post-stop (this avoids a race
18 # between post-stop and unity8 unpausing)
21 # Tell unity-mir to raise SIGSTOP after we start
22 initctl set-env UNITY_MIR_EMITS_SIGSTOP=1
24 if [ -n "$MIR_SOCKET" ]; then
25 initctl set-env --global WIZARD_ORIG_MIR_SOCKET=$MIR_SOCKET
27 # Point wizard at unity-system-compositor
28 MIR_SERVER_FILE=$XDG_RUNTIME_DIR/wizard_socket
29 initctl set-env MIR_SERVER_FILE=$MIR_SERVER_FILE
30 initctl set-env MIR_SERVER_HOST_SOCKET=$MIR_SOCKET
32 # Remove the socket if still there
33 if [ -S "$MIR_SERVER_FILE" ]; then
37 # Point future jobs in this session to our Mir socket instead of
38 # unity-system-compositor's socket.
39 initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
40 gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "@a{ss} {'MIR_SOCKET': '$MIR_SERVER_FILE'}"
45exec system-settings-wizard
48 if [ -n "$WIZARD_SKIPPED" ]; then
53 initctl set-env --global $1=$2
54 gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "@a{ss} {'$1': '$2'}"
59 if [ -S "$MIR_SERVER_FILE" ]; then
60 rm -f "$MIR_SERVER_FILE"
63 # Undo changes to global variables
64 if [ -n "$WIZARD_ORIG_MIR_SOCKET" ]; then
65 echo "Resetting MIR_SOCKET to $WIZARD_ORIG_MIR_SOCKET"
66 setenv MIR_SOCKET $WIZARD_ORIG_MIR_SOCKET
69 # Stop any indicators and OSK so they will be restarted with new environment
70 initctl emit indicator-services-end
71 stop maliit-server || true
73 # And finally, resume unity8
74 start --no-wait $JOB || true
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list