diff --git a/CHANGELOG b/CHANGELOG index efc436661..af135f362 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -18,6 +18,7 @@ This project _loosely_ adheres to [Semantic Versioning](https://semver.org/spec/ ### Fixed - Expression -> get would fail when executed on a Literal expression. [PR#353](https://github.com/perspect3vism/ad4m/pull/353) + - Fixed launcher breaking on windows if a new app instance is created. [PR#362](https://github.com/perspect3vism/ad4m/pull/362) ## [0.3.4] - 27/03/2023 ### Added diff --git a/ui/src-tauri/src/main.rs b/ui/src-tauri/src/main.rs index 9716131ce..ce0b9a3ab 100644 --- a/ui/src-tauri/src/main.rs +++ b/ui/src-tauri/src/main.rs @@ -63,7 +63,8 @@ pub struct AppState { } fn main() { - if has_processes_running("AD4M") > 1 { + let app_name = if std::env::consts::OS == "windows" { "AD4M.exe" } else { "AD4M" }; + if has_processes_running(app_name) > 1 { println!("AD4M is already running"); return; }