From 897af7af438d3ddde6358aae91ad34fc9480feca Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Oct 09 2024 13:13:17 +0000 Subject: Hack to fix gamepads Signed-off-by: Alyssa Rosenzweig --- diff --git a/shim.py b/shim.py index db5fb0b..3f67f56 100644 --- a/shim.py +++ b/shim.py @@ -112,6 +112,17 @@ def watch_steam(path): steam = None +# Obnoxious hack to workaround hidpipe race condition +# XXX: FIXME +def warm_gamepad(): + import socket + + with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as sock: + path = BaseDirectory.get_runtime_dir() + '/hidpipe' + sock.connect(path) + time.sleep(2) + sock.close() + def launch_steam(path): global steam global aborting @@ -120,6 +131,8 @@ def launch_steam(path): if not is_latest_installed(path): download(URL, path) + warm_gamepad() + # Launch steam steam_arg_string = ' '.join(STEAM_ARGS) steam = muvm(["FEXBash", "-c", f'{path}/steam-launcher/bin_steam.sh {steam_arg_string}']) diff --git a/steam.spec b/steam.spec index fd251bf..0d9d25b 100644 --- a/steam.spec +++ b/steam.spec @@ -1,6 +1,6 @@ Name: steam Version: 0 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Steam wrapper for Fedora Asahi Remix License: MIT @@ -25,6 +25,7 @@ Requires: grep Requires: hicolor-icon-theme Requires: lsb_release Requires: muvm +Requires: hidpipe Requires: python3 Requires: xwininfo Requires: mesa-fex-emu-overlay-i386 @@ -67,6 +68,9 @@ appstream-util validate-relax --nonet \ %{_metainfodir}/io.pagure.fedora_asahi.steam.metainfo.xml %changelog +* Wed Oct 9 2024 Alyssa Rosenzweig - 0-7 +- Hack to fix gamepads + * Sun Oct 6 2024 Alyssa Rosenzweig - 0-6 - Fix obnoxious font size - Pull in Mesa overlay explicitly