From 3bdc32b9f4c4d5b084c33e0464152446adfc0fff Mon Sep 17 00:00:00 2001 From: Gabriel Valcazar Date: Mon, 10 Jan 2022 17:17:25 +0100 Subject: [PATCH] weston-init: change target from "graphical" to "multi-user" In older Yocto versions, weston was launched via a udev rule, but now it gets launched as part of the "graphical" system target. Since this target isn't reached automatically on boot, the weston desktop will only appear if you manually launch said target (or the weston service itself). To make the desktop launch automatically, change the target to "multi-user", which is the default target laucnhed on boot. Signed-off-by: Gabriel Valcazar --- meta-digi-dey/recipes-graphics/wayland/weston-init.bbappend | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-digi-dey/recipes-graphics/wayland/weston-init.bbappend b/meta-digi-dey/recipes-graphics/wayland/weston-init.bbappend index d1f322eca..f6c2c72c3 100644 --- a/meta-digi-dey/recipes-graphics/wayland/weston-init.bbappend +++ b/meta-digi-dey/recipes-graphics/wayland/weston-init.bbappend @@ -41,6 +41,9 @@ do_install_append() { update_file "WatchdogSec=20" "WatchdogSec=${WATCHDOG_SEC}" ${D}${systemd_system_unitdir}/weston.service + update_file "Before=graphical.target" "Before=multi-user.target" ${D}${systemd_system_unitdir}/weston.service + update_file "WantedBy=graphical.target" "WantedBy=multi-user.target" ${D}${systemd_system_unitdir}/weston.service + # Add custom background image install -d ${D}${datadir}/weston install ${WORKDIR}/digi_background.png ${D}${datadir}/weston