[gatesgarth,16/21] weston-init: Fix incorrect idle-time setting

Submitted by Anuj Mittal on Nov. 23, 2020, 3:06 p.m. | Patch ID: 178157

Details

Message ID c7cd893088bc82466bf1843c292731eb5992467b.1606111370.git.anuj.mittal@intel.com
State New
Headers show

Commit Message

Anuj Mittal Nov. 23, 2020, 3:06 p.m.
From: Alistair <alistair@alistair23.me>


Signed-off-by: Alistair Francis <alistair@alistair23.me>

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

(cherry picked from commit 84b3a6b7bd73ebad90865ee4351578c2109358fb)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>

---
 meta/recipes-graphics/wayland/weston-init.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.28.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144928): https://lists.openembedded.org/g/openembedded-core/message/144928
Mute This Topic: https://lists.openembedded.org/mt/78454845/3616849
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [michael@yoctoproject.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb
index b7a99be646..1eee0d3c71 100644
--- a/meta/recipes-graphics/wayland/weston-init.bb
+++ b/meta/recipes-graphics/wayland/weston-init.bb
@@ -51,7 +51,7 @@  do_install() {
 	fi
 
 	if [ "${@bb.utils.contains('PACKAGECONFIG', 'no-idle-timeout', 'yes', 'no', d)}" = "yes" ]; then
-		echo "idle-time=0" >> ${D}${sysconfdir}/xdg/weston/weston.ini
+		sed -i -e "/^\[core\]/a idle-time=0" ${D}${sysconfdir}/xdg/weston/weston.ini
 	fi
 }