on xenial help sign in
Specify USC_SOCKET in lightdm's init session, so anyone that wants to can find USC (like the welcome wizard
c113da7Michael Terry
data/unity8-greeter-wrapper+1−1
@@ -54,7 +54,7 @@ gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/
54# creates for them and don't want to start all the services that a normal
54# creates for them and don't want to start all the services that a normal
55# session would. So it's inconvenient to live within an upstart session.
55# session would. So it's inconvenient to live within an upstart session.
56# But... we still want to use Upstart for some services. So launch here.
56# But... we still want to use Upstart for some services. So launch here.
57−MIR_SOCKET=$SUB_SOCKET $TOUCH_WRAPPER /sbin/init --user --no-startup-event &
57+USC_SOCKET=$MIR_SOCKET MIR_SOCKET=$SUB_SOCKET $TOUCH_WRAPPER /sbin/init --user --no-startup-event &
58INIT_PID=$!
58INIT_PID=$!
59while [ ! -e "$XDG_RUNTIME_DIR/upstart/sessions/$INIT_PID.session" ]; do sleep 0.1; done
59while [ ! -e "$XDG_RUNTIME_DIR/upstart/sessions/$INIT_PID.session" ]; do sleep 0.1; done
60export UPSTART_SESSION=$(/sbin/initctl list-sessions | grep "^$INIT_PID " | cut -d' ' -f2)
60export UPSTART_SESSION=$(/sbin/initctl list-sessions | grep "^$INIT_PID " | cut -d' ' -f2)