diff --git a/backend/tauri/src/cmds.rs b/backend/tauri/src/cmds.rs index 03cd2e9822..fa8c7afe82 100644 --- a/backend/tauri/src/cmds.rs +++ b/backend/tauri/src/cmds.rs @@ -401,7 +401,7 @@ pub async fn set_custom_app_dir(app_handle: tauri::AppHandle, path: String) -> C .arg("-Command") .arg( format!( - r#"Start-Process '{}' -ArgumentList 'migrate-home-dir','{}' -Verb runAs"#, + r#"Start-Process '{}' -ArgumentList 'migrate-home-dir','"{}"' -Verb runAs"#, app_exe.as_str(), path_str.as_str() ) diff --git a/backend/tauri/src/core/commands/mod.rs b/backend/tauri/src/core/commands/mod.rs index 9a4dbd706d..51d51a2898 100644 --- a/backend/tauri/src/core/commands/mod.rs +++ b/backend/tauri/src/core/commands/mod.rs @@ -36,6 +36,7 @@ mod handler { use std::{path::PathBuf, process::Command, str::FromStr, thread, time::Duration}; use sysinfo::System; use tauri::utils::platform::current_exe; + println!("target path {}", target_path); let token = Token::with_current_process()?; if let PrivilegeLevel::NotPrivileged = token.privilege_level()? {