add config parameter for the gui url

This commit is contained in:
2021-04-13 12:47:52 +02:00
parent ad79872631
commit 7342721715
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ def main():
controldeck.process("controldeck &", output=False)
config = controldeck.config_load()
url = config.get('gui', 'url', fallback='http://0.0.0.0:8000') + "/?gui"
try:
width = int(config.get('gui', 'width', fallback=800))
except ValueError as e:
@@ -46,7 +47,7 @@ def main():
on_top = config.get('gui', 'always_on_top', fallback='False').title() == 'True'
create_window("ControlDeck",
url="http://0.0.0.0:8000/?gui",
url=url,
html=None,
js_api=None,
width=width,

View File

@@ -67,6 +67,7 @@
# mic-mute-image-alt =
[gui]
url = http://0.0.0.0:8000
width = 800
height = 600
# x and y specifying the window coordinate (empty = centered)