Reworked the gamescope to work better with scaling and maximize window.

This commit is contained in:
2026-09-06 10:57:42 +02:00
parent f0d631be66
commit 3a01c6ba2a
10 changed files with 920 additions and 12 deletions

View File

@@ -837,6 +837,11 @@ def _extract_release_archive(archive: Path, destination: Path, version: str) ->
raise LauncherUpdateError(
f"launcher archive member is group/world writable: {member.name!r}"
)
permissions = member.mode & 0o777
if member.isfile() and permissions not in {0o644, 0o755}:
raise LauncherUpdateError(
f"launcher archive member has unsupported permissions: {member.name!r}"
)
target = destination.joinpath(*relative.parts)
if member.isdir():
target.mkdir(parents=True, exist_ok=True, mode=0o755)
@@ -866,7 +871,7 @@ def _extract_release_archive(archive: Path, destination: Path, version: str) ->
raise LauncherUpdateError(
f"launcher payload was incomplete: {member.name!r}"
)
target.chmod(0o644)
target.chmod(permissions)
def _validate_release_directory(release: Path) -> str: