Skip to content

Commit 15f05db

Browse files
committed
deeplink fix for linux
1 parent 612a1f8 commit 15f05db

File tree

1 file changed

+7
-1
lines changed
  • apps/desktop/src-tauri/src

1 file changed

+7
-1
lines changed

apps/desktop/src-tauri/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,15 @@ pub async fn main() {
114114
.on_window_event(tauri_plugin_windows::on_window_event)
115115
.setup(move |app| {
116116
let app_handle = app.handle().clone();
117-
118117
let app_clone = app_handle.clone();
119118

119+
#[cfg(any(windows, target_os = "linux"))]
120+
{
121+
// https://v2.tauri.app/ko/plugin/deep-linking/#desktop-1
122+
use tauri_plugin_deep_link::DeepLinkExt;
123+
app.deep_link().register_all()?;
124+
}
125+
120126
{
121127
use tauri_plugin_tray::TrayPluginExt;
122128
app_handle.create_tray_menu().unwrap();

0 commit comments

Comments
 (0)