Merge lp:~unity-team/unity8/fix-split-dbus into lp:unity8

Proposed by Michał Sawicz
Status: Merged
Merged at revision: 941
Proposed branch: lp:~unity-team/unity8/fix-split-dbus
Merge into: lp:unity8
Diff against target: 38 lines (+10/-5)
1 file modified
data/unity8-greeter-wrapper (+10/-5)
To merge this branch: bzr merge lp:~unity-team/unity8/fix-split-dbus
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Oliver Grawert Approve
Review via email: mp+221847@code.launchpad.net

Commit message

Move env setup past session init in greeter wrapper.

To post a comment you must log in.
lp:~unity-team/unity8/fix-split-dbus updated
940. By Michał Sawicz

Move env setup past session init.

Revision history for this message
Oliver Grawert (ogra) wrote :

we need to test that against calls etc ... PA_DISABLED seems to be essential for the telephony-service too function on locked greeters.

beyond that commment, it looks good.

review: Approve
lp:~unity-team/unity8/fix-split-dbus updated
941. By Oliver Grawert

Also manually start dbus.

942. By Oliver Grawert

Simpler session path passing.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/unity8-greeter-wrapper'
2--- data/unity8-greeter-wrapper 2014-05-19 22:43:09 +0000
3+++ data/unity8-greeter-wrapper 2014-06-03 10:31:45 +0000
4@@ -32,6 +32,8 @@
5
6 set_greeter_var()
7 {
8+ # Only use this after upstart has been started, otherwise multiple dbus
9+ # daemons are spawned.
10 export "$1=$2"
11 gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "{'$1': '$2'}"
12 if [ -n "$INIT_PID" ]; then
13@@ -52,11 +54,6 @@
14 # will start.
15 export DESKTOP_SESSION=ubuntu-touch
16
17-# We disable ofono using pulse. It causes problems with racing with the user's
18-# pulse. We need to come up with a better long-term fix for this, because we
19-# eventually need the greeter to play ringtones for users that aren't logged in.
20-set_greeter_var PA_DISABLED 1
21-
22 # Normal unity8 sessions are entirely driven by Upstart. But greeters
23 # are special. They need access to the file descriptors that lightdm
24 # creates for them and don't want to start all the services that a normal
25@@ -67,6 +64,14 @@
26 while [ ! -e "$XDG_RUNTIME_DIR/upstart/sessions/$INIT_PID.session" ]; do sleep 0.1; done
27 export UPSTART_SESSION=$(/sbin/initctl list-sessions | grep "^$INIT_PID " | cut -d' ' -f2)
28
29+/sbin/initctl start dbus
30+export DBUS_SESSION_BUS_ADDRESS="$(/sbin/initctl get-env DBUS_SESSION_BUS_ADDRESS)"
31+
32+# We disable ofono using pulse. It causes problems with racing with the user's
33+# pulse. We need to come up with a better long-term fix for this, because we
34+# eventually need the greeter to play ringtones for users that aren't logged in.
35+set_greeter_var PA_DISABLED 1
36+
37 # Start any pre-greeter tasks if needed (like wizard)
38 /sbin/initctl emit unity8-greeter-starting
39

Subscribers

People subscribed via source and target branches