fix: statusbar race condition WIP

This commit is contained in:
aclist committed 2026-01-21 12:04:42 +09:00
1 parent 2f9000ee80
commit 9cc1ece0d7
9 files changed
+169 -125

No files matched your search

+7 -2
View File
@@ -44,10 +44,12 @@ args = parser.parse_args()
if TYPE_CHECKING:
from pathlib import Path
# TODO: profile load time
def make_parents(path: "Path") -> None:
path.parent.mkdir(parents=True, exist_ok=True)
def uninstall() -> None:
# TODO: uninstall data files (-u)
# -u removes state, log, freedesktop
@@ -56,6 +58,7 @@ def uninstall() -> None:
# XDG_DATA_HOME/dzgui
pass
def main() -> None:
lock = lock_acquire() # noqa
@@ -85,7 +88,9 @@ def main() -> None:
migrate_cols_file(XDG.columns)
copy_state_files(xdg_paths["XDG_STATE_HOME"])
_format = "%(asctime)s␞%(levelname)s␞%(filename)s::%(funcName)s::%(lineno)s␞%(message)s"
_format = (
"%(asctime)s␞%(levelname)s␞%(filename)s::%(funcName)s::%(lineno)s␞%(message)s"
)
logging.basicConfig(filename=XDG.debug, format=_format, level=logging.DEBUG)
with open(XDG.debug, "w") as f:
f.truncate(0)
@@ -126,7 +131,7 @@ def main() -> None:
local_coords,
version,
allow,
XDG
XDG,
)
print("All OK. Loading UI...")
App(prefs)