From 3e6bd95285beaab7bc47ddc3abe854e91f14938b Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 26 Oct 2026 15:47:45 +0900 Subject: [PATCH] change: require explicit Steam launch command --- dzgui/api/steam.py | 5 ++++- dzgui/strings/wizard.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dzgui/api/steam.py b/dzgui/api/steam.py index 7efff23..2580bd0 100644 --- a/dzgui/api/steam.py +++ b/dzgui/api/steam.py @@ -26,8 +26,9 @@ from dzgui.const.constants import ( FLATPAK_CMD, FLATPAK_STEAM_PATH, LIBRARYFOLDERS_PATH, - UBUNTU_STEAM_PATH, REQUEST_TIMEOUT, + STEAM_CMD, + UBUNTU_STEAM_PATH, VDF_PATH, ) from dzgui.const.endpoints import ( @@ -86,6 +87,8 @@ def get_steam_paths() -> list[tuple[Path, str]]: for path in DEFAULT_PATH, FLATPAK_PATH, UBUNTU_PATH, DEBIAN_PATH: if path is FLATPAK_PATH and has_cmd(FLATPAK_CMD) is False: continue + if path is not FLATPAK_PATH and has_cmd(STEAM_CMD) is False: + continue if path.joinpath(VDF_PATH).is_file(): paths.append((path, human[path])) return paths diff --git a/dzgui/strings/wizard.py b/dzgui/strings/wizard.py index a495de8..de83762 100644 --- a/dzgui/strings/wizard.py +++ b/dzgui/strings/wizard.py @@ -19,7 +19,7 @@ desc_flatpak_path = ( desc_ubuntu_path = "This is the default Steam path on Ubuntu-based systems." desc_debian_path = "This is the default Steam path on Debian-based systems." no_valid_paths = ( - "No valid Steam paths found on system. Please install Steam to continue." + "No valid Steam path or Steam command found on system. Please install Steam to continue." ) button_scan = "Scan for Steam"