weston-init: when x11 is enabled set xwayland=true
PATCH 1/1 weston-init: when x11 is enabled set xwayland=true
When weston is build with x11 support xwayland is also build.
To get xwayland support in weston xwayland has to be enabled via weston.ini file.
This patch enable xwayland support in weston.
From 583bce5a1f5de91306bee5dbd914de577519247a Mon Sep 17 00:00:00 2001
From: ssuesens <[email protected]>
Date: Tue, 7 Jun 2022 11:47:27 +0000
Subject: [PATCH] [honister][PATCH]weston-init: when x11 is enabled set xwayland=true
---
meta/recipes-graphics/wayland/weston-init.bb | 4 ++++
1 file changed, 4 insertions(+)
meta/recipes-graphics/wayland/weston-init.bb +0 -0
@@ -57,6 +57,10 @@ do_install() {
sed -i -e "/^\[core\]/a idle-time=0" ${D}${sysconfdir}/xdg/weston/weston.ini fi
+ if [ "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'yes', 'no', d)}" = "yes" ]; then
+ sed -i -e "/^\[core\]/a xwayland=true" ${D}${sysconfdir}/xdg/weston/weston.ini
+ fi
+
install -dm 755 -o weston -g weston ${D}/home/weston
}
--
2.25.1
This needs to go to oe-core list; also should this go to master branch first? Can you provide a test that fails without the patch and succeeds with it? (see weston test in meta/lib/oeqa/runtime/cases)
Alex
Quoted 37 lines · Sebastian via lists.yoctoproject.org
When weston is build with x11 support xwayland is also build.
To get xwayland support in weston xwayland has to be enabled via weston.ini file.This patch enable xwayland support in weston.
From
583bce5a1f5de91306bee5dbd914de577519247aMon Sep 17 00:00:00 2001
From: ssuesens <[email protected]>
Date: Tue, 7 Jun 2022 11:47:27 +0000
Subject: [PATCH] [honister][PATCH]weston-init: when x11 is enabled set
xwayland=trueSigned-off-by ssuesens <[email protected]>--- meta/recipes-graphics/wayland/weston-init.bb | 4 ++++ 1 file changed, 4 insertions(+)meta/recipes-graphics/wayland/weston-init.bb +4
-1@@ -57,6 +57,10 @@ do_install() { sed -i -e "/^\[core\]/a idle-time=0" ${D}${sysconfdir}/xdg/weston/weston.ini fi + if [ "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'yes', 'no', d)}" = "yes" ]; then + sed -i -e "/^\[core\]/a xwayland=true" ${D}${sysconfdir}/xdg/weston/weston.ini + fi + install -dm 755 -o weston -g weston ${D}/home/weston } --2.25.1
Hey Alex,
where can I find a description how to test weston like you suggest?
Sebastian
You need to read weston tests in meta/lib/oeqa/runtime/cases, then execute them like this (build for the qemux86-64 machine):
bitbake -c testimage core-image-weston
Alex
Quoted 8 lines · Sebastian via lists.yoctoproject.org
Hey Alex,
where can I find a description how to test weston like you suggest?
Sebastian
Hello Alex,
how shall I test xwayland support?
My proposal is to install xterm on the image and test the return value.
What does you think?
Perhaps you have a better idea.
Regards,
Sebastian