Merge lp:~mterry/unity8-desktop-session/mir-libs into lp:unity8-desktop-session

Proposed by Michael Terry
Status: Merged
Approved by: Christopher Townsend
Approved revision: 120
Merged at revision: 120
Proposed branch: lp:~mterry/unity8-desktop-session/mir-libs
Merge into: lp:unity8-desktop-session
Diff against target: 39 lines (+15/-3)
1 file modified
scripts/unity8-snap-install (+15/-3)
To merge this branch: bzr merge lp:~mterry/unity8-desktop-session/mir-libs
Reviewer Review Type Date Requested Status
Christopher Townsend Approve
Review via email: mp+317682@code.launchpad.net

Commit message

Support connecting to mir-libs and unity8 when using unity8-snap-install.

Description of the change

Support connecting to mir-libs and unity8 when using unity8-snap-install.

To post a comment you must log in.
Revision history for this message
Christopher Townsend (townsend) wrote :

Ok, I will just assume this works:)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'scripts/unity8-snap-install'
2--- scripts/unity8-snap-install 2016-12-12 14:41:03 +0000
3+++ scripts/unity8-snap-install 2017-02-17 20:54:10 +0000
4@@ -41,12 +41,25 @@
5 }
6
7 install_app() {
8- install_snap $@ && \
9- echo_cmd $sudo snap connect $1:platform ubuntu-app-platform:platform
10+ install_snap $@ || return
11+
12+ # These should be auto-connected, but snapd only does so if you install
13+ # things in the right order. In case some existing snaps didn't get the
14+ # chance to connect the first time (or the user disconnected them?), let's
15+ # do it manually again.
16+
17+ $sudo snap connect $1:platform ubuntu-app-platform:platform 2>/dev/null
18+ $sudo snap connect $1:mir-libs mir-libs:mir-libs 2>/dev/null
19+ $sudo snap connect $1:mir unity8-session:mir 2>/dev/null
20+ $sudo snap connect $1:unity8 unity8-session:unity8 2>/dev/null
21 }
22
23+install_snap mir-libs --edge
24 install_snap ubuntu-app-platform --edge
25
26+install_snap unity8-session --edge --devmode
27+$sudo snap connect unity8-session:mir-libs mir-libs:mir-libs 2>/dev/null
28+
29 install_app address-book-app --edge --devmode
30 install_app camera-app --edge --devmode
31 install_app gallery-app --edge --devmode
32@@ -55,7 +68,6 @@
33 install_app ubuntu-clock-app --edge --devmode
34 install_app ubuntu-filemanager-app --edge --devmode
35 install_app ubuntu-terminal-app --edge --devmode
36-install_snap unity8-session --edge --devmode
37 install_app webbrowser-app --edge --devmode
38
39 exit 0

Subscribers

People subscribed via source and target branches