WIP push-to-talk Letta chat frontend
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

configure single-instance plugin

+34 -1
+16
src-tauri/Cargo.lock
··· 2023 2023 "tauri", 2024 2024 "tauri-build", 2025 2025 "tauri-plugin-opener", 2026 + "tauri-plugin-single-instance", 2026 2027 ] 2027 2028 2028 2029 [[package]] ··· 3722 3723 "thiserror 2.0.16", 3723 3724 "url", 3724 3725 "windows", 3726 + "zbus", 3727 + ] 3728 + 3729 + [[package]] 3730 + name = "tauri-plugin-single-instance" 3731 + version = "2.3.3" 3732 + source = "registry+https://github.com/rust-lang/crates.io-index" 3733 + checksum = "236043404a4d1502ed7cce11a8ec88ea1e85597eec9887b4701bb10b66b13b6e" 3734 + dependencies = [ 3735 + "serde", 3736 + "serde_json", 3737 + "tauri", 3738 + "thiserror 2.0.16", 3739 + "tracing", 3740 + "windows-sys 0.60.2", 3725 3741 "zbus", 3726 3742 ] 3727 3743
+3
src-tauri/Cargo.toml
··· 23 23 serde = { version = "1", features = ["derive"] } 24 24 serde_json = "1" 25 25 26 + [target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies] 27 + tauri-plugin-single-instance = "2" 28 +
+15 -1
src-tauri/src/lib.rs
··· 6 6 7 7 #[cfg_attr(mobile, tauri::mobile_entry_point)] 8 8 pub fn run() { 9 - tauri::Builder::default() 9 + let mut builder = tauri::Builder::default(); 10 + 11 + #[cfg(desktop)] 12 + { 13 + builder = builder.plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| { 14 + use tauri::Manager; 15 + 16 + let _ = app 17 + .get_webview_window("main") 18 + .expect("no main window") 19 + .set_focus(); 20 + })); 21 + } 22 + 23 + builder 10 24 .plugin(tauri_plugin_opener::init()) 11 25 .invoke_handler(tauri::generate_handler![greet]) 12 26 .run(tauri::generate_context!())