summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2020-07-17 17:41:16 +0200
committerPhilippe Schenker <philippe.schenker@toradex.com>2020-07-22 18:21:23 +0200
commit72d12dac06bf7b06a8d25fafe0a5c9cdb644a4b3 (patch)
treee13dd65c80de7cb03706ad8ddd6aa8cb6f16c0c2
parent7dfaa6aea79295320896315abed71124ac09e552 (diff)
wayland-app-launch: add possibility to set environment for app
Related-to: ELB-2838 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
-rw-r--r--recipes-graphics/wayland-app-launch/wayland-app-launch.inc5
-rw-r--r--recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in (renamed from recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service)1
2 files changed, 5 insertions, 1 deletions
diff --git a/recipes-graphics/wayland-app-launch/wayland-app-launch.inc b/recipes-graphics/wayland-app-launch/wayland-app-launch.inc
index 20a6c25..cd72391 100644
--- a/recipes-graphics/wayland-app-launch/wayland-app-launch.inc
+++ b/recipes-graphics/wayland-app-launch/wayland-app-launch.inc
@@ -10,13 +10,16 @@ RDEPENDS_${PN} += "weston-init ${INITIAL_APP_PKGS}"
S = "${WORKDIR}"
SRC_URI = " \
- file://wayland-app-launch.service \
+ file://wayland-app-launch.service.in \
file://wayland-app-launch.sh.in \
"
FILESEXTRAPATHS_prepend := "${THISDIR}/wayland-app-launch:"
+APPLICATION_ENVIRONMENT ??= ""
+
do_compile () {
sed -e "s:@@wayland-application@@:${WAYLAND_APPLICATION}:" wayland-app-launch.sh.in > wayland-app-launch.sh
+ sed -e "s:@@application-environment@@:${APPLICATION_ENVIRONMENT}:" wayland-app-launch.service.in > wayland-app-launch.service
}
do_install () {
diff --git a/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service b/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in
index d4b1008..c0f15b1 100644
--- a/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service
+++ b/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.service.in
@@ -6,6 +6,7 @@ Requires=weston@root.service
[Service]
Restart=always
Type=forking
+Environment=@@application-environment@@
ExecStart=/usr/bin/wayland-app-launch.sh
[Install]