Fixed keyboard / input issues with resizing.
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user