annotate flatpak/org.salutatoi.Jp.json @ 134:4549cf265131

flatpak: install D-Bus .service on each frontend: work around lack of dependency handling in Flatpak by installing D-Bus .service on each frontend. This works because all backend is included in the runtime, but we have to add backend permissions to all frontend, and set --own-name=org.salutatoi.SAT. Furthermore, if one frontend is removed, the symbolic link is removed and the backend will not be launched automatically anymore, even if other frontends are still there. The benefict of this method is that backend has not to be installed manually to use a frontend.
author Goffi <goffi@goffi.org>
date Sun, 15 Jul 2018 16:56:55 +0200
parents d7761eb3f20b
children 7272eafd0fad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
132
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
2 "app-id": "org.salutatoi.Jp",
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
3 "branch": "0.7.0a2",
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
4 "runtime": "org.salutatoi.Platform",
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
5 "runtime-version": "0.7.0a2",
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
6 "sdk": "org.salutatoi.Sdk",
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
7 "command": "jp",
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
8 "finish-args": [
134
4549cf265131 flatpak: install D-Bus .service on each frontend:
Goffi <goffi@goffi.org>
parents: 132
diff changeset
9 "--share=network",
4549cf265131 flatpak: install D-Bus .service on each frontend:
Goffi <goffi@goffi.org>
parents: 132
diff changeset
10 "--filesystem=home",
132
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
11 "--socket=session-bus",
134
4549cf265131 flatpak: install D-Bus .service on each frontend:
Goffi <goffi@goffi.org>
parents: 132
diff changeset
12 "--own-name=org.salutatoi.SAT"
132
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
13 ],
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
14 "modules": [
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
15 {
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
16 "name": "jp",
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
17 "buildsystem": "simple",
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
18 "build-commands": [
134
4549cf265131 flatpak: install D-Bus .service on each frontend:
Goffi <goffi@goffi.org>
parents: 132
diff changeset
19 "install -D /usr/bin/jp /app/bin/jp",
4549cf265131 flatpak: install D-Bus .service on each frontend:
Goffi <goffi@goffi.org>
parents: 132
diff changeset
20 "install -D /usr/lib/python2.7/site-packages/sat-0.7.0a2-py2.7.egg/share/dbus-1/services/org.salutatoi.SAT.service /app/share/dbus-1/services/org.salutatoi.SAT.service"
132
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
21 ]
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
22 }
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
23 ]
d7761eb3f20b flatpak: Flatpak manifests for backend and active frontends, first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
24 }