From 96bc47ae7e68d34280017416babc0eb26d5fb23c Mon Sep 17 00:00:00 2001 From: Philippe Coval <philippe.coval@huawei.com> Date: Tue, 26 Oct 2021 09:30:43 +0200 Subject: [PATCH] weston-init: Add screenlock option Forwarded: https://booting.oniroproject.org/distro/oniro/-/merge_requests/368 Signed-off-by: Philippe Coval <philippe.coval@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 91cf230a..d1994921 100644 --- a/meta-oniro-core/recipes-graphics/wayland/weston-init.bbappend +++ b/meta-oniro-core/recipes-graphics/wayland/weston-init.bbappend @@ -10,6 +10,7 @@ WESTON_DYNAMIC_INI ?= "0" WESTON_INI_PATH ?= "etc/xdg/weston/weston.ini" WESTON_INI_NO_TOOLBAR ?= "0" +WESTON_INI_SHELL_LOCKING ?= "true" WESTON_INI_BACKGROUND_IMAGE ?= "" WESTON_INI_BACKGROUND_IMAGE_BASENAME = "${@os.path.basename("${WESTON_INI_BACKGROUND_IMAGE}")}" WESTON_INI_BACKGROUND_COLOR ?= "0xffffffff" @@ -50,6 +51,12 @@ python generate_dynamic_ini() { if 'shell' not in config.sections(): config.add_section('shell') config.set('shell', 'panel-position', 'none') + # Handle locking configuration. + if d.getVar('WESTON_INI_SHELL_LOCKING') != None: + bb.note('Handling WESTON_INI_SHELL_LOCKING') + if 'shell' not in config.sections(): + config.add_section('shell') + config.set('shell', 'locking', d.getVar('WESTON_INI_SHELL_LOCKING')) # Handle background. background_image = d.getVar('WESTON_INI_BACKGROUND_IMAGE', True) -- GitLab