Suppress console windows on Windows and use ~/.paseo as default home

Add CREATE_NO_WINDOW flag to all Windows process spawns to prevent
visible console windows. Change Windows default managed home from
AppData\Roaming to ~/.paseo for consistency with macOS and server.
This commit is contained in:
Mohamed Boudra
2026-03-11 15:52:07 +07:00
parent 78849fa0bf
commit 327b315610
2 changed files with 14 additions and 3 deletions
+2
View File
@@ -229,8 +229,10 @@ fn shell_command(script: &str) -> Command {
}
#[cfg(windows)]
{
use std::os::windows::process::CommandExt;
let mut cmd = Command::new("cmd.exe");
cmd.arg("/C").arg(script);
cmd.creation_flags(0x08000000); // CREATE_NO_WINDOW
cmd
}
}