Skip to content
Snippets Groups Projects
Commit 66773fbf authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

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's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent 6f04290a
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,13 @@ python generate_dynamic_ini() { ...@@ -45,6 +45,13 @@ python generate_dynamic_ini() {
bb.fatal("weston.ini already exists and it is not a regular file") bb.fatal("weston.ini already exists and it is not a regular file")
config.read(ini_path) 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. # Handle no toolbar configuration.
if d.getVar('WESTON_INI_NO_TOOLBAR', True) == '1': if d.getVar('WESTON_INI_NO_TOOLBAR', True) == '1':
bb.note('Handling WESTON_INI_NO_TOOLBAR.') bb.note('Handling WESTON_INI_NO_TOOLBAR.')
......
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