mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: linux game tracking and closed button
This commit is contained in:
parent
ee4639e041
commit
7785d42021
5 changed files with 41 additions and 13 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue