aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src-tauri/src/lib.rs')
-rw-r--r--src-tauri/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
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