From 8d30d8021f59a578dbe32b832d13f0461ff3e593 Mon Sep 17 00:00:00 2001 From: svatantrya Date: Sun, 10 May 2026 07:18:10 -0400 Subject: [PATCH] print status bar command in calendar windows --- bal.py | 2 +- qt.py | 13 +++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/bal.py b/bal.py index 749c52d..c5705f7 100644 --- a/bal.py +++ b/bal.py @@ -51,7 +51,7 @@ class BalPlugin(BasePlugin): __version__ = "0.2.8" #AUTOMATICALLY GENERATED DO NOT EDIT default_app={ "Linux":"xdg-open", - "Windows":"start", + "Windows":"cmd /c start", "Darwin":"open" } chainname = constants.net.NET_NAME if constants.net.NET_NAME != "mainnet" else "bitcoin" diff --git a/qt.py b/qt.py index 76febdc..0645718 100644 --- a/qt.py +++ b/qt.py @@ -107,8 +107,6 @@ class Plugin(BalPlugin): @hook def create_status_bar(self, sb): _logger.info("HOOK create status bar") - print("STATUS_BAR") - Util.print_var(sb) b = StatusBarButton( read_QIcon_from_bytes(self.read_file("icons/bal32x32.png")), "Bal " + _("Bitcoin After Life"), @@ -4036,14 +4034,9 @@ class BalCalendar: try: subprocess.check_call([calendar_app, path]) return True - except Exception as _e: - _logger.error(f"starting calendar app linux failed:{_e}") - try: - import os - os.startfile(path) - except Exception as e: - _logger.error(f"starting calendar app {e}") - return False + except Exception as e: + _logger.error(f"starting calendar app {e}") + return False @staticmethod