aboutsummaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-config/agl-session/files
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2021-12-20 19:35:16 -0500
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2021-12-21 14:57:19 +0000
commitd3cca1280cf96aec035fa686ba273bb7c5f2dbd7 (patch)
tree9922c66828b86044a1e5b00d89c33e88ff489dd3 /meta-app-framework/recipes-config/agl-session/files
parent6f7d929c10b318fab8484b2b7a52fc047c7922fc (diff)
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 <scott.murray@konsulko.com> Change-Id: I5d1a72022ca97f25a915b64205bf70ab33516ec6 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/27048 Reviewed-by: Arnaud Ferraris <arnaud.ferraris@collabora.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'meta-app-framework/recipes-config/agl-session/files')
-rw-r--r--meta-app-framework/recipes-config/agl-session/files/50-xdg-data-dirs.sh7
1 files changed, 7 insertions, 0 deletions
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}"