weston-init: add customization directly in weston.ini instead of do_install()

We already have a copy of NXP's weston.ini, so there's no need to manuallly
append to it in our do_install_append(). Simply add our changes for our custom
desktop background directly in the source file.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
Gabriel Valcazar 2022-01-11 13:04:18 +01:00
parent 3bdc32b9f4
commit 830c9ff629
2 changed files with 5 additions and 8 deletions

View File

@ -47,14 +47,6 @@ do_install_append() {
# Add custom background image
install -d ${D}${datadir}/weston
install ${WORKDIR}/digi_background.png ${D}${datadir}/weston
# Customize weston ini file
cat <<EOF >>${D}${sysconfdir}/xdg/weston/weston.ini
[shell]
background-image=/usr/share/weston/digi_background.png
background-type=scale-crop
EOF
}
FILES_${PN} += "${datadir}/weston/digi_background.png"

View File

@ -30,3 +30,8 @@ touchscreen_calibrator=true
[screen-share]
command=/usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize --rdp-tls-cert=/etc/freerdp/keys/server.crt --rdp-tls-key=/etc/freerdp/keys/server.key
# Digi: Set custom background
[shell]
background-image=/usr/share/weston/digi_background.png
background-type=scale-crop