fix: acquire lock prior to calling build_gui()

This commit is contained in:
aclist committed 2026-11-11 03:09:14 +09:00
1 parent 3d346dfb07
commit 5a1c098af7
2 files changed
+3 -3

No files matched your search

-3
View File
@@ -22,7 +22,6 @@ from dzgui.init.migrate import (
copy_state_files,
migrate_cols_file,
)
from dzgui.init.flock import lock_acquire
from dzgui.init.prereqs import has_flatpak_client, has_steam_client
from dzgui.strings import boot
@@ -122,8 +121,6 @@ def load_steam_icon() -> None:
def build_gui(version: str, is_debug: bool) -> App | None:
lock = lock_acquire() # noqa
set_locale()
# NOTE: consider aborting this check if steam deck
xdg_paths = get_xdg_paths()
+3
View File
@@ -43,6 +43,9 @@ def main() -> None:
# NOTE: only import ligbirepository modules after the above check
from dzgui.app_init import build_gui
from dzgui.init.flock import lock_acquire
lock = lock_acquire() # noqa
app = build_gui(version, args.debug)
if app is None: