diff --git a/web-greeter/globals.py b/web-greeter/globals.py index d851469..eb2fa02 100644 --- a/web-greeter/globals.py +++ b/web-greeter/globals.py @@ -133,7 +133,7 @@ class WebGreeter(App): def __pre_init__(cls): ConfigLoader.add_filter(cls.validate_greeter_config_data) - def _before_web_container_init(self): + def _before_main_window_init(self): self.get_and_apply_user_config() def _before_exit(self): diff --git a/web-greeter/greeter.py b/web-greeter/greeter.py index ca12cfe..a58481a 100644 --- a/web-greeter/greeter.py +++ b/web-greeter/greeter.py @@ -85,8 +85,8 @@ def changeConfig(option: str, value): return def debugMode(value: bool): - window = {} - greeter = {} + window = dict(custom_config["whither"]["window"]) + greeter = dict(custom_config["app"]["greeter"]) if value: greeter["debug_mode"] = True window["decorated"] = True diff --git a/web-greeter/whither.yml b/web-greeter/whither.yml index a7451f4..a33acf0 100644 --- a/web-greeter/whither.yml +++ b/web-greeter/whither.yml @@ -10,6 +10,7 @@ WebGreeter: command: /usr/lib/at-spi2-core/at-spi-bus-launcher arg: --launch-immediately app_id: web-greeter + url_scheme: web-greeter context_menu: enabled: False debug_mode: '@debug_mode@'