Merge lp:~michael-sheldon/content-hub/fix-1390095 into lp:content-hub

Proposed by Michael Sheldon
Status: Merged
Approved by: Ken VanDine
Approved revision: 165
Merged at revision: 164
Proposed branch: lp:~michael-sheldon/content-hub/fix-1390095
Merge into: lp:content-hub
Diff against target: 16 lines (+6/-1)
1 file modified
src/com/ubuntu/content/service/content-hub-peer-hook-wrapper.in (+6/-1)
To merge this branch: bzr merge lp:~michael-sheldon/content-hub/fix-1390095
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Oliver Grawert Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+241129@code.launchpad.net

Commit message

Update click hook wrapper to account for change in dbus-session file.

Description of the change

Update click hook wrapper to account for change in dbus-session file.

To post a comment you must log in.
Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

Are there any related MPs required for this MP to build/function as expected? Please list.

 * No

Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)

 * Yes

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?

 * Yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/content-hub) on device or emulator?

 * Yes

If you changed the UI, was the change specified/approved by design?

 * No change

If you changed UI labels, did you update the pot file?

 * No change

If you changed the packaging (debian), did you add a core-dev as a reviewer to this MP?

 * Yes

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Oliver Grawert (ogra) wrote :

clear NACK

please get rid of this dependency it caused a lot of havoc in the past (multiple running dbus seeion daemons with different addresses etc) and breaks AP testing completely ... we took quite some effort to get rid of it from the image in trusty.

as i said on IRC, it is ok to temporary still use /run/user/$UID/dbus-session ... but long term we need a clean solution that does not expose a security relevant var in a file and simply hands it over from the calling environment.

review: Needs Fixing
165. By Michael Sheldon

Remove dbus-launch fallback

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Oliver Grawert (ogra) wrote :

looks good now

review: Approve
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?
 * Yes, tested on mako.

Did CI run pass? If not, please explain why.
 * Yes

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?
 * Yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/com/ubuntu/content/service/content-hub-peer-hook-wrapper.in'
2--- src/com/ubuntu/content/service/content-hub-peer-hook-wrapper.in 2014-06-02 16:33:13 +0000
3+++ src/com/ubuntu/content/service/content-hub-peer-hook-wrapper.in 2014-11-10 12:58:07 +0000
4@@ -1,7 +1,12 @@
5 #!/bin/sh
6
7+# PackageKit clears all environment variables, so we get the UID and then read
8+# in $DBUS_SESSION_BUS_ADDRESS from /run/user/$UID/dbus-session
9+
10+USERID=`id -u`
11+
12 if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
13- [ -e $HOME/.cache/upstart/dbus-session ] && . $HOME/.cache/upstart/dbus-session || eval `dbus-launch --sh-syntax`
14+ [ -e /run/user/$USERID/dbus-session ] && . /run/user/$USERID/dbus-session
15 [ -n "$DBUS_SESSION_BUS_ADDRESS" ] && export DBUS_SESSION_BUS_ADDRESS
16 fi
17

Subscribers

People subscribed via source and target branches