From 127c5c53808f0564c72fbf077afe32c9c386e34c Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Oct 09 2024 17:39:18 +0000 Subject: hidpipe: Fail gracefully if hidpipe is not running --- diff --git a/shim.py b/shim.py index 3f67f56..8e1cb92 100644 --- a/shim.py +++ b/shim.py @@ -119,7 +119,10 @@ def warm_gamepad(): with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as sock: path = BaseDirectory.get_runtime_dir() + '/hidpipe' - sock.connect(path) + try: + sock.connect(path) + except FileNotFoundError: + return time.sleep(2) sock.close() diff --git a/steam.spec b/steam.spec index 0d9d25b..bc45ca0 100644 --- a/steam.spec +++ b/steam.spec @@ -1,6 +1,6 @@ Name: steam Version: 0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Steam wrapper for Fedora Asahi Remix License: MIT @@ -68,6 +68,9 @@ appstream-util validate-relax --nonet \ %{_metainfodir}/io.pagure.fedora_asahi.steam.metainfo.xml %changelog +* Wed Oct 09 2024 Janne Grunau - 0-8 +- hidpipe: Fail gracefully if hidpipe is not running + * Wed Oct 9 2024 Alyssa Rosenzweig - 0-7 - Hack to fix gamepads