Merge lp:~mterry/ubuntu-touch-session/pulse-in-snap into lp:ubuntu-touch-session
| Status: | Merged | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Łukasz Zemczak on 2016-12-06 | ||||||||||||
| Approved revision: | 295 | ||||||||||||
| Merged at revision: | 296 | ||||||||||||
| Proposed branch: | lp:~mterry/ubuntu-touch-session/pulse-in-snap | ||||||||||||
| Merge into: | lp:ubuntu-touch-session | ||||||||||||
| Diff against target: |
163 lines (+28/-19) 10 files modified
etc/profile.d/upstart-phablet.sh (+1/-1) ubuntu-touch-lightdm-session (+1/-1) ubuntu-touch-session (+9/-9) upstart-session/bluez-mpris-proxy.conf (+1/-1) upstart-session/cameraservice-trust-stored.conf (+1/-1) upstart-session/obexd.conf (+1/-1) upstart-session/ofono-setup.conf (+1/-1) upstart-session/pulseaudio-trust-stored.conf (+1/-1) upstart-session/pulseaudio.conf (+11/-2) usc-wrapper (+1/-1) |
||||||||||||
| To merge this branch: | bzr merge lp:~mterry/ubuntu-touch-session/pulse-in-snap | ||||||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Łukasz Zemczak | 2016-11-23 | Approve on 2016-12-06 | |
| Albert Astals Cid (community) | 2016-09-23 | Abstain on 2016-11-16 | |
| Ubuntu Phablet Team | 2016-11-16 | Pending | |
|
Review via email:
|
|||
Commit Message
Support running inside a snap (without breaking non-snap runs).
Description of the Change
Support running inside a snap (without breaking non-snap runs).
For testing this, you can install silo 2129 (which will pull in a lot of other stuff too though...)
- 293. By Michael Terry on 2016-10-11
-
Rely on PATH where possible
| Lukáš Tinkl (lukas-kde) wrote : | # |
Well we have currently this in our snacraft.yaml:
export PULSE_DLPATH=$(ls -d $SNAP/usr/
But that wasn't enough; what I did was to add:
export GST_PLUGIN_
and
...
apps:
unity8-session:
command: snappyenv ${SNAP}
- plugs: [home]
+ plugs: [home, gsettings, pulseaudio, opengl]
After that, the indicator-sound starts and logout actually takes no more than a few seconds.
| Michael Terry (mterry) wrote : | # |
Hmm, I'm having pulseaudio start for me fine without any changes in this MP. I'm curious what our differences would be.
| Albert Astals Cid (aacid) wrote : | # |
You are running the snap in a xenial install while i'm running it in a zesty one? (Not idea about ltinkl)
- 294. By Michael Terry on 2016-11-15
-
Use .local/share/pulse instead of etc/pulse inside SNAP_USER_DATA in case we're using that for HOME too, like we do in u8 snap
| Michael Terry (mterry) wrote : | # |
I've committed a change to our snap packaging that uses the snapcraft-
I'm working on updating the silo PPA and snap to have all the latest changes.
| Michael Terry (mterry) wrote : | # |
(or you could just build your own snap and test that way)
| Michael Terry (mterry) wrote : | # |
Try again. I fixed an issue with our wrapper script that might have prevented this from working. (I hope)
| Albert Astals Cid (aacid) wrote : | # |
> Try again. I fixed an issue with our wrapper script that might have prevented
> this from working. (I hope)
Yes, that worked.
- 295. By Michael Terry on 2016-11-29
-
Only override PULSE_* if those vars aren't set (by a snap wrapper script, say)

I needed to add PATH=$SNAP/ usr/lib/ pulse-8. 0/modules: $LD_LIBRARY_ PATH $SNAP_USER_ DATA/etc/ pulse/touch. pa
initctl set-env LD_LIBRARY_
after
initctl set-env --global PULSE_SCRIPT=
so that pulseaudio actually started.
Lukas had a different/similar solution.