Skip to content

Commit

Permalink
fixed killing EA Desktop at times failing on Linux
Browse files Browse the repository at this point in the history
Pesky EA Desktop being annoying as always, leaving behind processes, to be
fair, I don't exactly think you're supposed to be killing it it like
this, but oh well, it seems to function now.
  • Loading branch information
0neGal committed Apr 30, 2024
1 parent 9b14fcb commit 7d9ee3a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/is_running.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ is_running.game = () => {
is_running.origin = () => {
return check_processes([
"Origin.exe",
"EADesktop.exe"
"EADesktop.exe",
"CrBrowserMain",
"EABackgroundSer"
])
}

Expand Down
6 changes: 6 additions & 0 deletions src/modules/kill.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ kill.origin = async () => {
let origin = await kill("Origin.exe");
let eadesktop = await kill("EADesktop.exe");

// these should be Linux only, and the above shouldn't succeed if
// these don't succeed, so we shouldn't have to check whether these
// actually succeeded or not
await kill("CrBrowserMain");
await kill("EABackgroundSer");

if (origin || eadesktop) {
return true;
}
Expand Down

0 comments on commit 7d9ee3a

Please sign in to comment.