diff --git a/src-tauri/src/utils/download_manager.rs b/src-tauri/src/utils/download_manager.rs index 65c67ef..5cf20df 100644 --- a/src-tauri/src/utils/download_manager.rs +++ b/src-tauri/src/utils/download_manager.rs @@ -512,9 +512,12 @@ impl DownloadManager { async fn install_package(&self, task: &InstallTask) -> Result<(), String> { println!("开始安装包: {}", task.filepath); + // 移除可能存在的引号 + let filepath = task.filepath.trim_matches('"'); + let output = Command::new("pkexec") .arg("ssinstall") - .arg(&task.filepath) + .arg(filepath) .arg("--delete-after-install") .output() .map_err(|e| {