From d3cca1280cf96aec035fa686ba273bb7c5f2dbd7 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Mon, 20 Dec 2021 19:35:16 -0500 Subject: meta-app-framework: agl-session: Ensure XDG_DATA_DIRS is set Add installation of a systemd user-environment-generator scriptlet to the agl-session recipe to ensure that XDG_DATA_DIRS is set to a reasonable default value. This is required for locating D-Bus activation .service files and icons. Bug-AGL: SPEC-4182 Signed-off-by: Scott Murray Change-Id: I5d1a72022ca97f25a915b64205bf70ab33516ec6 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/27048 Reviewed-by: Arnaud Ferraris Reviewed-by: Jan-Simon Moeller Tested-by: Jan-Simon Moeller --- .../recipes-config/agl-session/files/50-xdg-data-dirs.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 meta-app-framework/recipes-config/agl-session/files/50-xdg-data-dirs.sh (limited to 'meta-app-framework/recipes-config/agl-session/files') diff --git a/meta-app-framework/recipes-config/agl-session/files/50-xdg-data-dirs.sh b/meta-app-framework/recipes-config/agl-session/files/50-xdg-data-dirs.sh new file mode 100644 index 000000000..15ec3744a --- /dev/null +++ b/meta-app-framework/recipes-config/agl-session/files/50-xdg-data-dirs.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# use a default value if not already set +XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share/:/usr/share}" + +# write our output +echo "XDG_DATA_DIRS=${XDG_DATA_DIRS}" -- cgit 1.2.3-korg