Browse Source

Added custom url scheme in config. Bugfixes

sisyphus
JezerM 4 years ago
parent
commit
afa1614821
No known key found for this signature in database
GPG Key ID: 66BBC5D01388C6B5
  1. 2
      web-greeter/globals.py
  2. 4
      web-greeter/greeter.py
  3. 1
      web-greeter/whither.yml

2
web-greeter/globals.py

@ -133,7 +133,7 @@ class WebGreeter(App):
def __pre_init__(cls): def __pre_init__(cls):
ConfigLoader.add_filter(cls.validate_greeter_config_data) 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() self.get_and_apply_user_config()
def _before_exit(self): def _before_exit(self):

4
web-greeter/greeter.py

@ -85,8 +85,8 @@ def changeConfig(option: str, value):
return return
def debugMode(value: bool): def debugMode(value: bool):
window = {} window = dict(custom_config["whither"]["window"])
greeter = {} greeter = dict(custom_config["app"]["greeter"])
if value: if value:
greeter["debug_mode"] = True greeter["debug_mode"] = True
window["decorated"] = True window["decorated"] = True

1
web-greeter/whither.yml

@ -10,6 +10,7 @@ WebGreeter:
command: /usr/lib/at-spi2-core/at-spi-bus-launcher command: /usr/lib/at-spi2-core/at-spi-bus-launcher
arg: --launch-immediately arg: --launch-immediately
app_id: web-greeter app_id: web-greeter
url_scheme: web-greeter
context_menu: context_menu:
enabled: False enabled: False
debug_mode: '@debug_mode@' debug_mode: '@debug_mode@'

Loading…
Cancel
Save