Cargo.lock 🔗
@@ -1339,6 +1339,7 @@ dependencies = [
"settings",
"smol",
"tempfile",
+ "util",
"which 6.0.3",
"workspace",
]
Xiaobo Liu created
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>
Cargo.lock | 1 +
crates/auto_update/Cargo.toml | 1 +
crates/auto_update/src/auto_update.rs | 2 +-
crates/fs/src/fs.rs | 2 +-
4 files changed, 4 insertions(+), 2 deletions(-)
@@ -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() {
@@ -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()