Skip to content

Commit

Permalink
increase timeout for killing steam and enable silent mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartondock committed Jun 10, 2024
1 parent 071e0f1 commit 83b4f4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/lang/en-US/markdown/settings.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## General Settings
### Check for updates on start `[Recommend enabled]`
Check if an update for SRM is available and prompt to update each time SRM launches.
### Auto kill Steam
SRM will attempt to kill all running instances of Steam whenever it needs to read/write collections information (specifically when saving to steam from `Add Games`, when removing all games from `Settings`, and when refreshing games from `View Games`).
### Auto restart Steam
### Auto kill Steam `[Recommend enabled]`
SRM will attempt to kill all running instances of Steam whenever it needs to read/write collections information (specifically when saving to steam from `Add Games` and when removing all games from `Settings`).
### Auto restart Steam `[Recommend enabled]`
SRM will attempt to restart Steam after killing it and completing whatever collections related task required killing Steam in the first place. Requires `Auto kill Steam` to be enabled.
### Offline mode `[Recommend disabled]`
When enabled SRM makes no network requests, useful if you only want to use SRM for local images.
Expand Down
4 changes: 2 additions & 2 deletions src/lib/helpers/steam/stop-start-steam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AppSettings } from "../../../models";
import { LoggerService } from "../../../renderer/services";

const checkDelay = 500;
const timeout = 20000;
const timeout = 40000;

interface ActAndCheck {
commands: {
Expand Down Expand Up @@ -115,7 +115,7 @@ export async function startSteam() {
data.shell = 'powershell';
} else if (os.type() == 'Linux') {
data.commands = {
action: `2>/dev/null 1>&2 steam &`,
action: `2>/dev/null 1>&2 steam -silent &`,
check: `pid="$(pidof steam)"; if [ ! -z $pid ]; then echo "True"; else echo "False"; fi;`
}
data.shell = '/bin/sh'
Expand Down

0 comments on commit 83b4f4c

Please sign in to comment.