feat: Optimize kernel startup logic

1. tun mode startup logic
2. Remove invalid creation process PID logic
This commit is contained in:
huzibaca committed 2024-09-12 15:35:08 +08:00
1 parent 894960ef5a
commit 4a76997044
5 files changed
+18 -31

No files matched your search

-4
View File
@@ -102,10 +102,6 @@ pub fn profiles_path() -> Result<PathBuf> {
Ok(app_home_dir()?.join(PROFILE_YAML))
}
pub fn clash_pid_path() -> Result<PathBuf> {
Ok(app_home_dir()?.join("clash.pid"))
}
#[cfg(not(target_os = "windows"))]
pub fn service_path() -> Result<PathBuf> {
Ok(app_resources_dir()?.join("clash-verge-service"))