Skip to content

Commit

Permalink
Merge pull request #652 from LiamillionSS/bugfix/452
Browse files Browse the repository at this point in the history
[bugfix-452] fix to "launch game when steam is not running" on linux
  • Loading branch information
Zagrios authored Nov 12, 2024
2 parents e17b7f7 + db616c6 commit 4bf2da1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/services/steam.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -116,7 +118,7 @@ export class SteamService {

public async openSteam(): Promise<void> {

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
Expand Down

0 comments on commit 4bf2da1

Please sign in to comment.