From a55c8a2425d671579600af389b49485064050c37 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 17 Aug 2024 14:23:01 +0200 Subject: [PATCH] Added version info to startup log --- sbapp/main.py | 3 +++ sbapp/sideband/core.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sbapp/main.py b/sbapp/main.py index 0a2037a..f4958fe 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -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) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index 1839939..ca514f9 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -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: