From f7b508525fc1d13bafdc3f0987aa46348ac275e7 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Tue, 20 Dec 2022 15:03:11 +0100 Subject: feat: Alternatively check if EA App is running (#115) --- src-tauri/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 54f23d93..f8ea6aba 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -311,6 +311,12 @@ pub fn check_origin_running() -> bool { for _process in s.processes_by_name("Origin.exe") { // check here if this is your process // dbg!(process); + // There's at least one Origin process, so we can launch + return true; + } + // Alternatively, check for EA Desktop + for _process in s.processes_by_name("EADesktop.exe") { + // There's at least one EADesktop process, so we can launch return true; } false -- cgit v1.2.3