Fixed keyboard / input issues with resizing.

This commit is contained in:
2026-09-06 21:52:07 +02:00
parent 0963ae34b9
commit 6eab4b961f
3 changed files with 58 additions and 8 deletions

View File

@@ -146,13 +146,13 @@ def _bundled_gamescope_host_supported() -> bool:
def _bundled_gamescope_is_usable() -> bool:
"""Verify the launcher-local executable before selecting it."""
"""Verify the launcher-local executable and restore its safe archive mode."""
if not _bundled_gamescope_host_supported():
return False
path = _bundled_gamescope_path()
try:
if not path.is_file() or not os.access(path, os.X_OK):
if path.is_symlink() or not path.is_file():
return False
digest = hashlib.sha256()
with path.open("rb") as handle:
@@ -160,7 +160,14 @@ def _bundled_gamescope_is_usable() -> bool:
digest.update(chunk)
except OSError:
return False
return digest.hexdigest() == BUNDLED_GAMESCOPE_SHA256
if digest.hexdigest() != BUNDLED_GAMESCOPE_SHA256:
return False
if not os.access(path, os.X_OK):
try:
path.chmod(0o755)
except OSError:
return False
return os.access(path, os.X_OK)
def _select_wayland_gamescope(executable: str) -> tuple[str, bool, bool]: