diff options
| author | Brendan Allan <[email protected]> | 2026-01-13 22:38:24 +0800 |
|---|---|---|
| committer | Brendan Allan <[email protected]> | 2026-01-13 22:38:24 +0800 |
| commit | 3c5a256f0fe620743f9e1a8f7d1546b87950aa5e (patch) | |
| tree | 77f9afae2d0adab914f0436cbce669e024544c75 | |
| parent | 067338bc256213909c59f5a37118d2f8099ca5f2 (diff) | |
| download | opencode-3c5a256f0fe620743f9e1a8f7d1546b87950aa5e.tar.gz opencode-3c5a256f0fe620743f9e1a8f7d1546b87950aa5e.zip | |
desktop: macos killall opencode-cli on launch
| -rw-r--r-- | packages/desktop/src-tauri/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/desktop/src-tauri/src/lib.rs b/packages/desktop/src-tauri/src/lib.rs index 4bb7b21ec..75ddb6566 100644 --- a/packages/desktop/src-tauri/src/lib.rs +++ b/packages/desktop/src-tauri/src/lib.rs @@ -223,6 +223,11 @@ async fn check_server_health(url: &str, password: Option<&str>) -> bool { pub fn run() { let updater_enabled = option_env!("TAURI_SIGNING_PRIVATE_KEY").is_some(); + #[cfg(target_os = "macos")] + let _ = std::process::Command::new("killall") + .arg("opencode-cli") + .output(); + let mut builder = tauri::Builder::default() .plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| { // Focus existing window when another instance is launched |
