weston-init: Fix incorrect idle-time setting

Submitted by Alistair Francis on Nov. 15, 2020, 5:17 a.m. | Patch ID: 177990

Details

Message ID 20201115051736.49184-1-alistair@alistair23.me
State New
Headers show

Commit Message

Alistair Francis Nov. 15, 2020, 5:17 a.m.
Signed-off-by: Alistair Francis <alistair@alistair23.me>

---
 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 (#144594): https://lists.openembedded.org/g/openembedded-core/message/144594
Mute This Topic: https://lists.openembedded.org/mt/78265632/1003190
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [mhalstead@linuxfoundation.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 0cc32985c1..a616c473ec 100644
--- a/meta/recipes-graphics/wayland/weston-init.bb
+++ b/meta/recipes-graphics/wayland/weston-init.bb
@@ -56,7 +56,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
 }