Skip to content
Snippets Groups Projects
Commit 2b16c849 authored by philippe coval's avatar philippe coval :speech_balloon: Committed by philippe coval
Browse files

weston: Make keyboard optional

For optimisation purpose there is no need to launch
extra weston-keyboard on systems where input is handled differently
(eg: Using custom UI)

This can be disabled in blueprints conf if desired

Relate-to: https://forum.ostc-eu.org/t/226#bootchart
Forwarded: https://booting.oniroproject.org/distro/oniro/-/merge_requests/442


Signed-off-by: default avatarPhilippe Coval <philippe.coval@huawei.com>
parent f79a7611
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,7 @@ WESTON_INI_BACKGROUND_IMAGE ?= "" ...@@ -15,6 +15,7 @@ WESTON_INI_BACKGROUND_IMAGE ?= ""
WESTON_INI_BACKGROUND_IMAGE_BASENAME = "${@os.path.basename("${WESTON_INI_BACKGROUND_IMAGE}")}" WESTON_INI_BACKGROUND_IMAGE_BASENAME = "${@os.path.basename("${WESTON_INI_BACKGROUND_IMAGE}")}"
WESTON_INI_BACKGROUND_COLOR ?= "0xffffffff" WESTON_INI_BACKGROUND_COLOR ?= "0xffffffff"
WESTON_INI_BACKGROUND_TYPE ?= "centered" WESTON_INI_BACKGROUND_TYPE ?= "centered"
WESTON_INI_INPUT_METHOD_PATH ?= "/usr/libexec/weston-keyboard"
do_install_append() { do_install_append() {
# The filename references in WESTON_INI_BACKGROUND_IMAGE needs to be # The filename references in WESTON_INI_BACKGROUND_IMAGE needs to be
...@@ -65,6 +66,13 @@ python generate_dynamic_ini() { ...@@ -65,6 +66,13 @@ python generate_dynamic_ini() {
config.add_section('shell') config.add_section('shell')
config.set('shell', 'locking', d.getVar('WESTON_INI_SHELL_LOCKING')) config.set('shell', 'locking', d.getVar('WESTON_INI_SHELL_LOCKING'))
# Handle Input method
if d.getVar('WESTON_INI_INPUT_METHOD_PATH') != None:
bb.note('Handling WESTON_INI_INPUT_METHOD_PATH')
if 'input-method' not in config.sections():
config.add_section('input-method')
config.set('input-method', 'path', d.getVar('WESTON_INI_INPUT_METHOD_PATH'))
# Handle background. # Handle background.
background_image = d.getVar('WESTON_INI_BACKGROUND_IMAGE', True) background_image = d.getVar('WESTON_INI_BACKGROUND_IMAGE', True)
if background_image: if background_image:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment