Conversation
Add tool_check.py with fallback path probing for Bazzite, SteamOS, Fedora Atomic, and NixOS where binaries live outside the default PATH. - Centralize all shutil.which() calls into find_tool() / is_tool_available() - Probe /usr/lib/extensions/, /var/usrlocal/bin, /usr/games, NixOS profile paths when normal PATH lookup fails - Augment PATH in Electron main process before spawning Python backend - Add Bazzite/SteamOS install hints to Gamescope and MangoHud UI - Bump version to 0.8.9 Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
shutil.which()fails because binaries live outside the app's PATH (Gamescope and MangoHud not detected on Bazzite / immutable Fedora Atomic distros #10)tool_check.pymodule — centralizes all tool detection with a three-tier strategy: normal PATH → extra immutable-distro bin dirs → tool-specific known pathsChanged Files
src/game_setup_hub/tool_check.pyfind_tool()/is_tool_available()with fallback pathssrc/game_setup_hub/gamescope.pyis_tool_available("gamescope")src/game_setup_hub/mangohud.pyis_tool_available("mangohud")src/game_setup_hub/presets.pyis_tool_available()for mangohud + gamemoderunsrc/game_setup_hub/protontricks.pyfind_tool("protontricks")for binary pathsrc/game_setup_hub/display.pyfind_tool()for xrandr / wlr-randrelectron/main.tsgamescope-builder.tsxmangohud/page.tsxpyproject.tomlelectron/package.jsonCloses #10
Made with Cursor