SRC_URI = " \
file://org.freedesktop.weston.wayland-terminal.desktop \
+ file://weston-terminal.desktop \
"
inherit allarch
do_install() {
install -d ${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 \
--- /dev/null
+[Desktop Entry]
+Version=1.0
+Name=Weston Terminal (systemd)
+Comment=Terminal Emulator
+GenericName=Terminal Emulator
+Exec=weston-terminal
+Icon=utilities-terminal
+Terminal=false
+Type=Application
+Categories=System;TerminalEmulator;
+DBusActivatable=true
+StartupNotify=true