fix: linux game tracking and closed button

This commit is contained in:
JackEnx 2024-11-12 15:38:30 -03:00
parent ee4639e041
commit 7785d42021
5 changed files with 41 additions and 13 deletions

View file

@ -24,7 +24,11 @@ const closeGame = async (
if (!game) return;
const gameProcess = processes.find((runningProcess) => {
return runningProcess.exe === game.executablePath;
if (process.platform === "linux") {
return runningProcess.name === game.executablePath?.split("/").at(-1);
} else {
return runningProcess.exe === game.executablePath;
}
});
if (gameProcess) {