diff options
author | Scott Murray <scott.murray@konsulko.com> | 2021-12-20 19:35:16 -0500 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2021-12-21 14:57:19 +0000 |
commit | d3cca1280cf96aec035fa686ba273bb7c5f2dbd7 (patch) | |
tree | 9922c66828b86044a1e5b00d89c33e88ff489dd3 /meta-app-framework/recipes-config/agl-session/agl-session_0.1.bb | |
parent | 6f7d929c10b318fab8484b2b7a52fc047c7922fc (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/agl-session_0.1.bb')
-rw-r--r-- | meta-app-framework/recipes-config/agl-session/agl-session_0.1.bb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta-app-framework/recipes-config/agl-session/agl-session_0.1.bb b/meta-app-framework/recipes-config/agl-session/agl-session_0.1.bb index abde287ac..696533383 100644 --- a/meta-app-framework/recipes-config/agl-session/agl-session_0.1.bb +++ b/meta-app-framework/recipes-config/agl-session/agl-session_0.1.bb @@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7ca SRC_URI = "\ file://agl-session@.service \ file://agl-session.target \ + file://50-xdg-data-dirs.sh \ " inherit systemd allarch useradd @@ -30,6 +31,13 @@ do_install() { install -d ${D}${systemd_user_unitdir} install -m 0644 ${WORKDIR}/agl-session.target ${D}${systemd_user_unitdir} + + install -d ${D}${libdir}/systemd/user-environment-generators + install -m 0755 ${WORKDIR}/50-xdg-data-dirs.sh ${D}${libdir}/systemd/user-environment-generators/ } -FILES:${PN} += "${systemd_system_unitdir} ${systemd_user_unitdir}" +FILES:${PN} += " \ + ${systemd_system_unitdir} \ + ${systemd_user_unitdir} \ + ${libdir}/systemd/user-environment-generators/ \ +" |