diff --git a/dzgui/api/steam.py b/dzgui/api/steam.py index ab87025..7efff23 100644 --- a/dzgui/api/steam.py +++ b/dzgui/api/steam.py @@ -13,6 +13,7 @@ from warnings import deprecated from dzgui.api.acf import ACF from dzgui.init.prereqs import has_any_client +from dzgui.init.proc import has_cmd from dzgui.const.constants import ( APPID_DAYZ, APPID_DAYZ_EXP, @@ -22,6 +23,7 @@ from dzgui.const.constants import ( DEBIAN_STEAM_PATH, DEFAULT_STEAM_PATH, DOWNLOADS_PATH, + FLATPAK_CMD, FLATPAK_STEAM_PATH, LIBRARYFOLDERS_PATH, UBUNTU_STEAM_PATH, @@ -82,6 +84,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.joinpath(VDF_PATH).is_file(): paths.append((path, human[path])) return paths