From 957a6b512ecdebac77c97cc7970f76d50636d71a Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Tue, 2 Sep 2025 05:59:15 -0300 Subject: [PATCH] fix: handle case where steam is not installed --- src/main/services/steam.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/services/steam.ts b/src/main/services/steam.ts index 0049d710..cdc16860 100644 --- a/src/main/services/steam.ts +++ b/src/main/services/steam.ts @@ -88,6 +88,10 @@ export const getSteamUsersIds = async () => { return []; } + if (!fs.existsSync(userDataPath)) { + return []; + } + const userIds = fs.readdirSync(path.join(userDataPath, "userdata"), { withFileTypes: true, });