Fixed some proton 7 path issues and the override in settings.

This commit is contained in:
2026-09-01 19:07:00 +02:00
parent d819809197
commit 78dade0d86
2 changed files with 123 additions and 40 deletions

View File

@@ -11,6 +11,7 @@ import shutil
from typing import Mapping
from .launcher import find_wine_tools
from .runtime import find_steam_proton7
ARCH_FAMILY_DISTRIBUTIONS = frozenset(
@@ -176,19 +177,7 @@ def _package_hint(distribution: str) -> str | None:
def _has_steam_proton7(environment: Mapping[str, str]) -> bool:
home_value = environment.get("HOME")
if not home_value:
return False
home = Path(home_value)
for steam_root in (
home / ".local/share/Steam",
home / ".steam/steam",
home / "snap/steam/common/.local/share/Steam",
home / ".var/app/com.valvesoftware.Steam/.local/share/Steam",
):
if (steam_root / "steamapps/common/Proton 7.0/proton").is_file():
return True
return False
return find_steam_proton7(environment) is not None
def _platform_optional_tools(distribution: str, *, architecture: str) -> list[ToolStatus]: