on xenial help sign in
Undo wrapper changes too
commit1c819884b302bbb584fde6f7203fa691f11a206c authorMichael Terry <michael.terry@canonical.com> dateTue 3 Jun 2014, 10:55 (12 years ago) parente536545
1 file changed+5−10
data/unity8-greeter-wrapper+5−10
data/unity8-greeter-wrapper+5−10
@@ -32,8 +32,6 @@ cleanup()
3232
3333set_greeter_var()
3434{
35− # Only use this after upstart has been started, otherwise multiple dbus
36− # daemons are spawned.
3735 export "$1=$2"
3836 gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "{'$1': '$2'}"
3937 if [ -n "$INIT_PID" ]; then
@@ -54,6 +52,11 @@ fi
5452# will start.
5553export DESKTOP_SESSION=ubuntu-touch
5654
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
59+
5760# Normal unity8 sessions are entirely driven by Upstart. But greeters
5861# are special. They need access to the file descriptors that lightdm
5962# creates for them and don't want to start all the services that a normal
@@ -64,14 +67,6 @@ INIT_PID=$!
6467while [ ! -e "$XDG_RUNTIME_DIR/upstart/sessions/$INIT_PID.session" ]; do sleep 0.1; done
6568export UPSTART_SESSION=$(/sbin/initctl list-sessions | grep "^$INIT_PID " | cut -d' ' -f2)
6669
67−/sbin/initctl start dbus
68−export DBUS_SESSION_BUS_ADDRESS="$(/sbin/initctl get-env DBUS_SESSION_BUS_ADDRESS)"
69−
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
74−
7570# Start any pre-greeter tasks if needed (like wizard)
7671/sbin/initctl emit unity8-greeter-starting
7772