From 2c3cae3ccf92188ee859bb8cf40ab3c0801de3aa Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Wed, 2 Dec 2020 10:01:40 +0100 Subject: wayland-app-launch: make initial path working Related-to: ELB-3153 Signed-off-by: Philippe Schenker (cherry picked from commit 3964c2cfc63e0c3418a2d693b61c3dc95d55c8d2) --- recipes-graphics/wayland-app-launch/wayland-app-launch.inc | 2 +- .../wayland-app-launch/wayland-app-launch/wayland-app-launch.sh.in | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'recipes-graphics') diff --git a/recipes-graphics/wayland-app-launch/wayland-app-launch.inc b/recipes-graphics/wayland-app-launch/wayland-app-launch.inc index cd72391..18b6b29 100644 --- a/recipes-graphics/wayland-app-launch/wayland-app-launch.inc +++ b/recipes-graphics/wayland-app-launch/wayland-app-launch.inc @@ -18,7 +18,7 @@ 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:@@wayland-application@@:${WAYLAND_APPLICATION}:" -e "s:@@initial-path@@:${INITIAL_PATH}:" 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 } diff --git a/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.sh.in b/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.sh.in index ebebfbf..87349aa 100644 --- a/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.sh.in +++ b/recipes-graphics/wayland-app-launch/wayland-app-launch/wayland-app-launch.sh.in @@ -11,4 +11,5 @@ fi while [ ! -e $XDG_RUNTIME_DIR/wayland-0 ] ; do sleep 0.1; done sleep 1 +cd @@initial-path@@ @@wayland-application@@ & -- cgit v1.2.3