Merge lp:~marcustomlinson/ubuntu-store-app/snap into lp:ubuntu-store-app

Proposed by Marcus Tomlinson
Status: Work in progress
Proposed branch: lp:~marcustomlinson/ubuntu-store-app/snap
Merge into: lp:ubuntu-store-app
Diff against target: 97 lines (+82/-0)
3 files modified
snap/snapcraft.yaml (+38/-0)
snap/ubuntu-store.launcher (+10/-0)
snap/ubuntu-store.qml (+34/-0)
To merge this branch: bzr merge lp:~marcustomlinson/ubuntu-store-app/snap
Reviewer Review Type Date Requested Status
unity-api-1-bot continuous-integration Needs Fixing
Unity API Team Pending
Review via email: mp+311595@code.launchpad.net

Commit message

Added simple snapweb in a webview

To post a comment you must log in.
Revision history for this message
unity-api-1-bot (unity-api-1-bot) wrote :
review: Needs Fixing (continuous-integration)

Unmerged revisions

3. By Marcus Tomlinson

Added simple snapweb in a webview

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'snap'
2=== added file 'snap/snapcraft.yaml'
3--- snap/snapcraft.yaml 1970-01-01 00:00:00 +0000
4+++ snap/snapcraft.yaml 2016-11-23 12:42:39 +0000
5@@ -0,0 +1,38 @@
6+name: ubuntu-store
7+version: '0.1'
8+summary: Snapweb in a WebView
9+description: Snapweb in a WebView
10+
11+grade: devel
12+confinement: strict
13+
14+apps:
15+ ubuntu-store:
16+ command: ubuntu-store.launcher
17+ plugs:
18+ - browser-sandbox
19+ - network
20+ - network-bind
21+ - opengl
22+ - unity7
23+
24+plugs:
25+ browser-sandbox:
26+ interface: browser-support
27+ allow-sandbox: true
28+
29+parts:
30+ ubuntu-store-qml:
31+ plugin: dump
32+ source: .
33+ stage-packages:
34+ - qmlscene
35+ - qml-module-qtquick2
36+ - qml-module-ubuntu-web
37+ after: [desktop-qt5]
38+
39+ launcher:
40+ plugin: dump
41+ source: .
42+ organize:
43+ ubuntu-store.launcher: bin/ubuntu-store.launcher
44
45=== added file 'snap/ubuntu-store.launcher'
46--- snap/ubuntu-store.launcher 1970-01-01 00:00:00 +0000
47+++ snap/ubuntu-store.launcher 2016-11-23 12:42:39 +0000
48@@ -0,0 +1,10 @@
49+#!/bin/sh
50+
51+# Disable the chromium sandbox to work around https://launchpad.net/bugs/1599234.
52+# Rely on snapd’s security policy instead.
53+export OXIDE_NO_SANDBOX=1
54+
55+# Explicitly set APP_ID.
56+export APP_ID=ubuntu-store
57+
58+exec "$SNAP/bin/desktop-launch" "qmlscene" "$SNAP/ubuntu-store.qml"
59
60=== added file 'snap/ubuntu-store.qml'
61--- snap/ubuntu-store.qml 1970-01-01 00:00:00 +0000
62+++ snap/ubuntu-store.qml 2016-11-23 12:42:39 +0000
63@@ -0,0 +1,34 @@
64+/*
65+ * Copyright 2016 Canonical Ltd.
66+ *
67+ * This program is free software; you can redistribute it and/or modify
68+ * it under the terms of the GNU Lesser General Public License as published by
69+ * the Free Software Foundation; version 3.
70+ *
71+ * This program is distributed in the hope that it will be useful,
72+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
73+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
74+ * GNU Lesser General Public License for more details.
75+ *
76+ * You should have received a copy of the GNU Lesser General Public License
77+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
78+ */
79+
80+import QtQuick 2.0
81+import Ubuntu.Web 0.2
82+
83+WebView {
84+ id: webView
85+ focus: true
86+
87+ url: "http://localhost:4200"
88+
89+ width: 500
90+ height: 500
91+
92+ onCertificateError: {
93+ if (error.overridable) {
94+ error.allow()
95+ }
96+ }
97+}

Subscribers

People subscribed via source and target branches