windows: Hide background helpers behind CREATE_NO_WINDOW (#41737)
Close https://github.com/zed-industries/zed/issues/41538 Release Notes: - Fixed some processes on windows not spawning with CREATE_NO_WINDOW --------- Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
This commit is contained in:
Generated
+1
@@ -1339,6 +1339,7 @@ dependencies = [
|
||||
"settings",
|
||||
"smol",
|
||||
"tempfile",
|
||||
"util",
|
||||
"which 6.0.3",
|
||||
"workspace",
|
||||
]
|
||||
|
||||
@@ -26,6 +26,7 @@ serde_json.workspace = true
|
||||
settings.workspace = true
|
||||
smol.workspace = true
|
||||
tempfile.workspace = true
|
||||
util.workspace = true
|
||||
workspace.workspace = true
|
||||
|
||||
[target.'cfg(not(target_os = "windows"))'.dependencies]
|
||||
|
||||
@@ -962,7 +962,7 @@ pub async fn finalize_auto_update_on_quit() {
|
||||
.parent()
|
||||
.map(|p| p.join("tools").join("auto_update_helper.exe"))
|
||||
{
|
||||
let mut command = smol::process::Command::new(helper);
|
||||
let mut command = util::command::new_smol_command(helper);
|
||||
command.arg("--launch");
|
||||
command.arg("false");
|
||||
if let Ok(mut cmd) = command.spawn() {
|
||||
|
||||
+1
-1
@@ -377,7 +377,7 @@ impl Fs for RealFs {
|
||||
|
||||
#[cfg(windows)]
|
||||
if smol::fs::metadata(&target).await?.is_dir() {
|
||||
let status = smol::process::Command::new("cmd")
|
||||
let status = new_smol_command("cmd")
|
||||
.args(["/C", "mklink", "/J"])
|
||||
.args([path, target.as_path()])
|
||||
.status()
|
||||
|
||||
Reference in New Issue
Block a user