mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:53:44 +08:00
chore: update
This commit is contained in:
parent
45b48ede44
commit
3154b8ce55
@ -294,14 +294,13 @@ impl Sysopt {
|
|||||||
})()
|
})()
|
||||||
.unwrap_or(app_path);
|
.unwrap_or(app_path);
|
||||||
|
|
||||||
// fix #403
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
let app_path = {
|
let app_path = {
|
||||||
use crate::core::handle::Handle;
|
use crate::core::handle::Handle;
|
||||||
use tauri::Manager;
|
use tauri::Manager;
|
||||||
|
|
||||||
let handle = Handle::global();
|
let app_handle = Handle::global().app_handle();
|
||||||
match handle.app_handle.lock().as_ref() {
|
match app_handle {
|
||||||
Some(app_handle) => {
|
Some(app_handle) => {
|
||||||
let appimage = app_handle.env().appimage;
|
let appimage = app_handle.env().appimage;
|
||||||
appimage
|
appimage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user