Skip to content

Commit 75d845c

Browse files
committed
Fix resolve and resourses for client
1 parent 5eda89e commit 75d845c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

client/src-tauri/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
mod sing_box_helper;
22

33
use std::fs;
4+
use std::process::Stdio;
45
use std::sync::{Arc, Mutex};
56
use tauri::{
67
menu::{Menu, MenuItem},
@@ -651,6 +652,7 @@ async fn start_openvpn(
651652
use std::thread;
652653

653654
let app_data_dir = app.path().app_data_dir().expect("Failed to get app dir");
655+
#[allow(unused_variables)]
654656
let resource_dir = app.path().resource_dir().unwrap_or_else(|_| std::env::current_dir().unwrap());
655657
let logs_path = app_data_dir.join("candy.logs");
656658

@@ -679,6 +681,7 @@ async fn start_openvpn(
679681
));
680682

681683
// Resolve openvpn binary: try bundled first, then system
684+
#[allow(unused_variables)]
682685
let resolve_tool = |base: &std::path::Path, rel_path: &str| -> std::path::PathBuf {
683686
let p1 = base.join(rel_path);
684687
if p1.exists() { return p1; }

0 commit comments

Comments
 (0)