From c54d1491e636af1f29f81cfde74bd243558f40dc Mon Sep 17 00:00:00 2001 From: LiamillionSS Date: Sun, 10 Nov 2024 00:57:28 +1100 Subject: [PATCH 1/2] [bugfix-452] fix to launch game when steam is not running on linux --- src/main/services/steam.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/services/steam.service.ts b/src/main/services/steam.service.ts index 19e67ef89..77ffc9162 100644 --- a/src/main/services/steam.service.ts +++ b/src/main/services/steam.service.ts @@ -116,7 +116,7 @@ export class SteamService { public async openSteam(): Promise { - await shell.openPath("steam://open/games"); + await shell.openExternal("steam://open/games"); return new Promise((resolve, reject) => { // Every 3 seconds check if steam is running From db616c6bd7e0883095f79be1180a4297e3cc7346 Mon Sep 17 00:00:00 2001 From: LiamillionSS Date: Sun, 10 Nov 2024 19:20:46 +1100 Subject: [PATCH 2/2] [bugfix-452] PROCESS_NAME now uses steam-runtime-launcher-service on linux to avoid steamProcessRunning false positives --- src/main/services/steam.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/services/steam.service.ts b/src/main/services/steam.service.ts index 77ffc9162..608a761c0 100644 --- a/src/main/services/steam.service.ts +++ b/src/main/services/steam.service.ts @@ -13,7 +13,9 @@ const { list } = (execOnOs({ win32: () => require("regedit-rs") }, true) ?? {}) export class SteamService { - private static readonly PROCESS_NAME = "steam"; + private static readonly PROCESS_NAME: string = process.platform === "linux" + ? "steam-runtime-launcher-service" + : "steam"; private static instance: SteamService;