From aa6100e48b4beabe8cb5371fb88a98aebe58a996 Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Thu, 7 Jul 2022 16:26:45 +0000 Subject: recipes-demo: update application's .desktop files for systemd execution Initial version of applaunchd with systemd_manager still uses .desktop files for enumeration purposes and requires DBusActivatable=true to indicate apps that should be launched as systemd services. This will be addressed in the new revision of applaunchd and hopefully .desktop files dropped completely. Bug-AGL: SPEC-4466 Signed-off-by: Denys Dmytriyenko Change-Id: I3bcea79ec653fc834a39be4135ed4c008d5979db --- recipes-demo/radio/radio_git.bb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'recipes-demo/radio') diff --git a/recipes-demo/radio/radio_git.bb b/recipes-demo/radio/radio_git.bb index 57b6df8b..fcbbd634 100644 --- a/recipes-demo/radio/radio_git.bb +++ b/recipes-demo/radio/radio_git.bb @@ -31,6 +31,12 @@ do_install:append() { install -m 0644 ${WORKDIR}/presets-${AGL_RADIO_PRESETS_LOCALE}.conf ${D}${sysconfdir}/xdg/AGL/radio-presets.conf } +# HACK: new systemd-enabled applaunchd for now relies on .desktop and DBusActivatable +do_install:append() { + sed -n "/^DBusActivatable=/!p" -i ${D}${datadir}/applications/radio.desktop + echo "DBusActivatable=true" >> ${D}${datadir}/applications/radio.desktop +} + FILES:${PN} += "${sysconfdir}/xdg/AGL/* ${datadir}/icons/" RDEPENDS:${PN} += "libqtappfw" -- cgit 1.2.3-korg