From 5d742a90376dec2cc998d3f510871b55d2fe6679 Mon Sep 17 00:00:00 2001 From: huzibaca Date: Mon, 23 Sep 2024 23:57:08 +0800 Subject: [PATCH] chore: update --- src-tauri/src/core/sysopt.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/core/sysopt.rs b/src-tauri/src/core/sysopt.rs index 35ed33a8..a9060424 100644 --- a/src-tauri/src/core/sysopt.rs +++ b/src-tauri/src/core/sysopt.rs @@ -294,14 +294,13 @@ impl Sysopt { })() .unwrap_or(app_path); - // fix #403 #[cfg(target_os = "linux")] let app_path = { use crate::core::handle::Handle; use tauri::Manager; - let handle = Handle::global(); - match handle.app_handle.lock().as_ref() { + let app_handle = Handle::global().app_handle(); + match app_handle { Some(app_handle) => { let appimage = app_handle.env().appimage; appimage