Added umu download and repair for missing components on install, update and manual repair.

This commit is contained in:
2026-09-02 21:42:49 +02:00
parent 6f20b5e359
commit 7ce6ac3dd7
9 changed files with 660 additions and 40 deletions

View File

@@ -213,7 +213,7 @@ def inspect_login_environment(
)
runtime_requested = runtime_override or settings.runtime
diagnostic_settings = replace(settings, runtime=runtime_requested)
selection, runtime_error = _runtime_selection(diagnostic_settings)
selection, runtime_error = _runtime_selection(paths, diagnostic_settings)
distribution_id = detect_distribution_id() or "unknown"
kernel_release = platform.release()
proton_sync_effective = (
@@ -476,9 +476,12 @@ def _active_game_root(paths: AppPaths) -> Path:
return paths.source_game
def _runtime_selection(settings: Settings) -> tuple[RuntimeSelection | None, str | None]:
def _runtime_selection(
paths: AppPaths,
settings: Settings,
) -> tuple[RuntimeSelection | None, str | None]:
try:
return select_runtime(settings), None
return select_runtime(settings, paths=paths), None
except RuntimeError as exc:
return None, str(exc)