From 66773fbfe935264e8e69f09d4ea4c415b7454e82 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <andrei.gherzan@huawei.com> Date: Thu, 4 Nov 2021 15:37:59 +0000 Subject: [PATCH] weston-init: Add support for idle time configuration This exposes WESTON_IDLE_TIME variable for the idle-time configuration. For example: [core] idle-time=0 Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> --- .../recipes-graphics/wayland/weston-init.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta-oniro-core/recipes-graphics/wayland/weston-init.bbappend b/meta-oniro-core/recipes-graphics/wayland/weston-init.bbappend index d1994921..a3f928b4 100644 --- a/meta-oniro-core/recipes-graphics/wayland/weston-init.bbappend +++ b/meta-oniro-core/recipes-graphics/wayland/weston-init.bbappend @@ -45,6 +45,13 @@ python generate_dynamic_ini() { bb.fatal("weston.ini already exists and it is not a regular file") config.read(ini_path) + # Core configuration + if d.getVar('WESTON_IDLE_TIME', True) != None: + bb.note('Handling WESTON_IDLE_TIME.') + if 'core' not in config.sections(): + config.add_section('core') + config.set('core', 'idle-time', d.getVar('WESTON_IDLE_TIME')) + # Handle no toolbar configuration. if d.getVar('WESTON_INI_NO_TOOLBAR', True) == '1': bb.note('Handling WESTON_INI_NO_TOOLBAR.') -- GitLab