comparison flatpak/org.salutatoi.Cagou.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
comparison
equal deleted inserted replaced
133:a68fc8159071 134:4549cf265131
9 "--socket=session-bus", 9 "--socket=session-bus",
10 "--socket=x11", 10 "--socket=x11",
11 "--share=ipc", 11 "--share=ipc",
12 "--socket=wayland", 12 "--socket=wayland",
13 "--share=network", 13 "--share=network",
14 "--filesystem=home" 14 "--filesystem=home",
15 "--socket=session-bus",
16 "--own-name=org.salutatoi.SAT"
15 ], 17 ],
16 "modules": [ 18 "modules": [
17 { 19 {
18 "name": "mtdev", 20 "name": "mtdev",
19 "sources": [ 21 "sources": [
202 }, 204 },
203 { 205 {
204 "name": "cagou", 206 "name": "cagou",
205 "buildsystem": "simple", 207 "buildsystem": "simple",
206 "build-commands": [ 208 "build-commands": [
207 "python2 setup.py install --prefix=/app" 209 "python2 setup.py install --prefix=/app",
210 "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"
208 ], 211 ],
209 "sources": [ 212 "sources": [
210 { 213 {
211 "type": "archive", 214 "type": "archive",
212 "url": "https://files.pythonhosted.org/packages/81/e8/8c967847465dc8f192bd97638ca696ca8990c7ad379ffd33b90fd334136d/cagou-0.7.0a1.tar.gz", 215 "url": "https://files.pythonhosted.org/packages/81/e8/8c967847465dc8f192bd97638ca696ca8990c7ad379ffd33b90fd334136d/cagou-0.7.0a1.tar.gz",