Skip to content
This repository was archived by the owner on Jan 10, 2026. It is now read-only.

fix: handle Flatpak Steam game processes correctly#30

Closed
ghost wants to merge 1 commit intomasterfrom
unknown repository
Closed

fix: handle Flatpak Steam game processes correctly#30
ghost wants to merge 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Jun 18, 2025

I've tested this commit, and it is working. Please read the comment, as it was a struggle to get it right.

If the game is run through Flatpak Steam, not all child processes are listed for the parent process when executing 'pgrep', so
we need to run the command with the first PID and then the output PIDs. Additionally, 'pkill' does not terminate all child
processes, so we must reverse the order so that the last process terminates first; otherwise, new untracked processes may start.

I've also replaced the exit code -11 with -15 because it didn't work, and I believe this is the correct signal to use.

@ghost ghost closed this by deleting the head repository Mar 4, 2026
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants