add config parameter for the gui url
This commit is contained in:
@@ -8,6 +8,7 @@ def main():
|
|||||||
controldeck.process("controldeck &", output=False)
|
controldeck.process("controldeck &", output=False)
|
||||||
|
|
||||||
config = controldeck.config_load()
|
config = controldeck.config_load()
|
||||||
|
url = config.get('gui', 'url', fallback='http://0.0.0.0:8000') + "/?gui"
|
||||||
try:
|
try:
|
||||||
width = int(config.get('gui', 'width', fallback=800))
|
width = int(config.get('gui', 'width', fallback=800))
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
@@ -46,7 +47,7 @@ def main():
|
|||||||
on_top = config.get('gui', 'always_on_top', fallback='False').title() == 'True'
|
on_top = config.get('gui', 'always_on_top', fallback='False').title() == 'True'
|
||||||
|
|
||||||
create_window("ControlDeck",
|
create_window("ControlDeck",
|
||||||
url="http://0.0.0.0:8000/?gui",
|
url=url,
|
||||||
html=None,
|
html=None,
|
||||||
js_api=None,
|
js_api=None,
|
||||||
width=width,
|
width=width,
|
||||||
|
|||||||
@@ -67,6 +67,7 @@
|
|||||||
# mic-mute-image-alt =
|
# mic-mute-image-alt =
|
||||||
|
|
||||||
[gui]
|
[gui]
|
||||||
|
url = http://0.0.0.0:8000
|
||||||
width = 800
|
width = 800
|
||||||
height = 600
|
height = 600
|
||||||
# x and y specifying the window coordinate (empty = centered)
|
# x and y specifying the window coordinate (empty = centered)
|
||||||
|
|||||||
Reference in New Issue
Block a user