diff options
| author | Hegyi Áron Ferenc <[email protected]> | 2026-01-29 08:09:53 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-29 15:09:53 +0800 |
| commit | 2af326606c936380c303bf56506e3c8bed04b0eb (patch) | |
| tree | 2c1fe35b7f5f77f88869291168e01e7ab220b566 /packages/desktop/src-tauri/src/lib.rs | |
| parent | 7c0067d59d318bfd6ecd473c36a9e673a4f68ff9 (diff) | |
| download | opencode-2af326606c936380c303bf56506e3c8bed04b0eb.tar.gz opencode-2af326606c936380c303bf56506e3c8bed04b0eb.zip | |
feat(desktop): Add desktop deep link (#10072)
Co-authored-by: Brendan Allan <[email protected]>
Diffstat (limited to 'packages/desktop/src-tauri/src/lib.rs')
| -rw-r--r-- | packages/desktop/src-tauri/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/desktop/src-tauri/src/lib.rs b/packages/desktop/src-tauri/src/lib.rs index dab98f4a0..29ac86f29 100644 --- a/packages/desktop/src-tauri/src/lib.rs +++ b/packages/desktop/src-tauri/src/lib.rs @@ -16,6 +16,8 @@ use std::{ time::{Duration, Instant}, }; use tauri::{AppHandle, LogicalSize, Manager, RunEvent, State, WebviewWindowBuilder}; +#[cfg(any(target_os = "linux", all(debug_assertions, windows)))] +use tauri_plugin_deep_link::DeepLinkExt; #[cfg(windows)] use tauri_plugin_decorum::WebviewWindowExt; use tauri_plugin_dialog::{DialogExt, MessageDialogButtons, MessageDialogResult}; @@ -263,6 +265,7 @@ pub fn run() { let _ = window.unminimize(); } })) + .plugin(tauri_plugin_deep_link::init()) .plugin(tauri_plugin_os::init()) .plugin( tauri_plugin_window_state::Builder::new() @@ -291,6 +294,9 @@ pub fn run() { markdown::parse_markdown_command ]) .setup(move |app| { + #[cfg(any(target_os = "linux", all(debug_assertions, windows)))] + app.deep_link().register_all().ok(); + let app = app.handle().clone(); // Initialize log state |
