X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=recipes-graphics%2Fwayland%2Fweston-terminal-conf.bb;h=a34c414857072d5d1297213facaba3c8ea546ebc;hb=refs%2Fchanges%2F39%2F28239%2F2;hp=4bf864f42afe3c3345c5d63ab50aaf208aed4b6a;hpb=477b8e482242db57d9ada3a8c3b2c69c27126ea5;p=AGL%2Fmeta-agl-demo.git diff --git a/recipes-graphics/wayland/weston-terminal-conf.bb b/recipes-graphics/wayland/weston-terminal-conf.bb index 4bf864f42..a34c41485 100644 --- a/recipes-graphics/wayland/weston-terminal-conf.bb +++ b/recipes-graphics/wayland/weston-terminal-conf.bb @@ -2,19 +2,20 @@ SUMMARY = "AGL user session" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" -SRC_URI = " \ - file://weston-terminal.desktop \ -" +inherit allarch agl-app -inherit allarch +AGL_APP_ID = "org.freedesktop.weston.wayland-terminal" +AGL_APP_EXEC = "weston-terminal" +AGL_APP_NAME = "Weston Terminal" do_install() { - install -d ${D}${datadir}/applications - install -m 0644 ${WORKDIR}/weston-terminal.desktop ${D}${datadir}/applications + # Enable systemd sandboxing override as a demonstration + install -d ${D}${systemd_system_unitdir}/agl-app@${AGL_APP_ID}.service.d/ + ln -sf ${systemd_system_unitdir}/sandboxing/no-network.conf ${D}${systemd_system_unitdir}/agl-app@${AGL_APP_ID}.service.d/ } -FILES:${PN} = "${datadir}/applications" - -RDEPENDS:${PN} = " \ - weston \ +FILES:${PN} = " \ + ${sysconfdir}/systemd/system/agl-app@${AGL_APP_ID}.service.d \ " + +RDEPENDS:${PN} = "weston"