summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]