fix: linux build error

This commit is contained in:
MystiPanda 2024-01-10 15:22:08 +08:00
parent fba18ca40a
commit ba42b2e77d

View File

@ -92,7 +92,7 @@ pub fn clash_pid_path() -> Result<PathBuf> {
Ok(app_home_dir()?.join("clash.pid"))
}
#[cfg(linux)]
#[cfg(target_os = "linux")]
pub fn local_applications_dir() -> Result<PathBuf> {
use tauri::api::path::home_dir;
Ok(home_dir()