mirror of
https://github.com/aclist/dztui.git
synced 2026-11-10 20:10:38 +01:00
Merge pull request #537 from aclist/fix/cannot-acquire-lock
fix: cannot acquire lock
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -16,7 +16,7 @@ from dzgui.api.steam import is_dayz_downloading
|
||||
(["state_221100_1111"], False),
|
||||
],
|
||||
)
|
||||
def test_dayz_patch_pending(monkeypatch, file_list, expect) -> None:
|
||||
def test_dayz_patch_pending(monkeypatch, file_list: list[str], expect: bool) -> None:
|
||||
def mock_get_pending_downloads(steam_path: Path, appid: int) -> None:
|
||||
files = [Path(file) for file in file_list]
|
||||
return files
|
||||
|
||||
Reference in new issue
Block a user