@@ -32,8 +32,6 @@ cleanup()
33set_greeter_var()
33set_greeter_var()
35− # Only use this after upstart has been started, otherwise multiple dbus
36− # daemons are spawned.
37 export "$1=$2"
35 export "$1=$2"
38 gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "{'$1': '$2'}"
36 gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "{'$1': '$2'}"
39 if [ -n "$INIT_PID" ]; then
37 if [ -n "$INIT_PID" ]; then
@@ -54,6 +52,11 @@ fi
54# will start.
52# will start.
55export DESKTOP_SESSION=ubuntu-touch
53export DESKTOP_SESSION=ubuntu-touch
55+# We disable ofono using pulse. It causes problems with racing with the user's
56+# pulse. We need to come up with a better long-term fix for this, because we
57+# eventually need the greeter to play ringtones for users that aren't logged in.
58+set_greeter_var PA_DISABLED 1
57# Normal unity8 sessions are entirely driven by Upstart. But greeters
60# Normal unity8 sessions are entirely driven by Upstart. But greeters
58# are special. They need access to the file descriptors that lightdm
61# are special. They need access to the file descriptors that lightdm
59# creates for them and don't want to start all the services that a normal
62# creates for them and don't want to start all the services that a normal
@@ -64,14 +67,6 @@ INIT_PID=$!
64while [ ! -e "$XDG_RUNTIME_DIR/upstart/sessions/$INIT_PID.session" ]; do sleep 0.1; done
67while [ ! -e "$XDG_RUNTIME_DIR/upstart/sessions/$INIT_PID.session" ]; do sleep 0.1; done
65export UPSTART_SESSION=$(/sbin/initctl list-sessions | grep "^$INIT_PID " | cut -d' ' -f2)
68export UPSTART_SESSION=$(/sbin/initctl list-sessions | grep "^$INIT_PID " | cut -d' ' -f2)
67−/sbin/initctl start dbus
68−export DBUS_SESSION_BUS_ADDRESS="$(/sbin/initctl get-env DBUS_SESSION_BUS_ADDRESS)"
70−# We disable ofono using pulse. It causes problems with racing with the user's
71−# pulse. We need to come up with a better long-term fix for this, because we
72−# eventually need the greeter to play ringtones for users that aren't logged in.
73−set_greeter_var PA_DISABLED 1
75# Start any pre-greeter tasks if needed (like wizard)
70# Start any pre-greeter tasks if needed (like wizard)
76/sbin/initctl emit unity8-greeter-starting
71/sbin/initctl emit unity8-greeter-starting