From 4ed84390cf3e75993c7e3e8e49a77e51b1795658 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Thu, 30 Mar 2023 23:35:39 +0200 Subject: [PATCH] Fix Steam Linux/Windows bug --- src/utils/steam_parser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/steam_parser.py b/src/utils/steam_parser.py index 26911d0..e10f954 100644 --- a/src/utils/steam_parser.py +++ b/src/utils/steam_parser.py @@ -162,7 +162,9 @@ def steam_parser(parent_widget): ) elif os.path.exists(os.path.expanduser("~/.steam/steam/")): schema.set_string("steam-location", "~/.steam/steam/") - elif os.path.exists(os.path.join(os.getenv("programfiles(x86)"), "Steam")): + elif os.name == "nt" and os.path.exists( + os.path.join(os.getenv("programfiles(x86)"), "Steam") + ): schema.set_string( "steam-location", os.path.join(os.getenv("programfiles(x86)"), "Steam") )