X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=recipes-graphics%2Fwayland%2Fweston-terminal-conf.bb;h=573e2df020ffc7cf7447a7cd63e02eedecb325e1;hb=32bc374d3ab668a00dcd3083613d51f0ae59398d;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..573e2df02 100644 --- a/recipes-graphics/wayland/weston-terminal-conf.bb +++ b/recipes-graphics/wayland/weston-terminal-conf.bb @@ -3,6 +3,7 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" SRC_URI = " \ + file://org.freedesktop.weston.wayland-terminal.desktop \ file://weston-terminal.desktop \ " @@ -10,10 +11,20 @@ inherit allarch do_install() { install -d ${D}${datadir}/applications - install -m 0644 ${WORKDIR}/weston-terminal.desktop ${D}${datadir}/applications + install -m 0644 ${WORKDIR}/org.freedesktop.weston.wayland-terminal.desktop ${D}${datadir}/applications + + # Enable systemd sandboxing override as a demonstration + mkdir -p ${D}${sysconfdir}/systemd/system/agl-app@weston-terminal.service.d/ + ln -sf ${sysconfdir}/systemd/sandboxing/no-network.conf ${D}${sysconfdir}/systemd/system/agl-app@weston-terminal.service.d/ + + # HACK - install .desktop file for systemd until applaunchd can do enumeration with homescreen names and icons + install -m 0644 ${WORKDIR}/weston-terminal.desktop ${D}${datadir}/applications/ } -FILES:${PN} = "${datadir}/applications" +FILES:${PN} = " \ + ${datadir}/applications \ + ${sysconfdir}/systemd/system/agl-app@weston-terminal.service.d \ +" RDEPENDS:${PN} = " \ weston \