Added version info to startup log

This commit is contained in:
Mark Qvist 2024-08-17 14:23:01 +02:00
parent 51523a216d
commit a55c8a2425
2 changed files with 5 additions and 1 deletions

View File

@ -202,6 +202,8 @@ class SidebandApp(MDApp):
else:
self.sideband = SidebandCore(self, config_path=self.config_path, is_client=False, verbose=(args.verbose or __debug_build__))
self.sideband.version_str = "v"+__version__+" "+__variant__
self.set_ui_theme()
self.font_config()
self.update_input_language()
@ -5520,6 +5522,7 @@ def run():
is_daemon=True
)
sideband.version_str = "v"+__version__+" "+__variant__
sideband.start()
while True:
time.sleep(5)

View File

@ -141,6 +141,7 @@ class SidebandCore():
self.service_stopped = False
self.service_context = service_context
self.owner_service = owner_service
self.version_str = ""
if config_path == None:
self.app_dir = plyer.storagepath.get_home_dir()+"/.config/sideband"
@ -3833,7 +3834,7 @@ class SidebandCore():
thread.start()
self.setstate("core.started", True)
RNS.log("Sideband Core "+str(self)+" started")
RNS.log("Sideband Core "+str(self)+" version "+str(self.version_str)+" started")
def stop_webshare(self):
if self.webshare_server != None: