Skip to content
Snippets Groups Projects
Unverified Commit 3cd2be50 authored by GyDi's avatar GyDi
Browse files

fix: check config

parent c9359978
No related branches found
No related tags found
No related merge requests found
......@@ -59,8 +59,11 @@ impl CoreManager {
let clash_core = { Config::verge().latest().clash_core.clone() };
let clash_core = clash_core.unwrap_or("clash".into());
let app_dir = dirs::app_home_dir()?;
let app_dir = dirs::path_to_str(&app_dir)?;
let output = Command::new_sidecar(clash_core)?
.args(["-t", "-f", config_path])
.args(["-t", "-d", app_dir, "-f", config_path])
.output()?;
if !output.status.success() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment