From 44d1f512f87cd6cbb7f3bcd88cab92b8cbfbf4d2 Mon Sep 17 00:00:00 2001 From: Alvaro Parker <64918109+AlvaroParker@users.noreply.github.com> Date: Fri, 4 Jul 2025 20:27:21 -0400 Subject: [PATCH] Use /usr/bin/env to run bash restart script (#33936) Closes #33935 Release Notes: - Use `/usr/bin/env` to launch the bash restart script --- crates/gpui/src/platform/linux/platform.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/gpui/src/platform/linux/platform.rs b/crates/gpui/src/platform/linux/platform.rs index 01a587e72a..af53899b43 100644 --- a/crates/gpui/src/platform/linux/platform.rs +++ b/crates/gpui/src/platform/linux/platform.rs @@ -200,8 +200,8 @@ impl Platform for P { app_path = app_path.display() ); - // execute the script using /bin/bash - let restart_process = Command::new("/bin/bash") + let restart_process = Command::new("/usr/bin/env") + .arg("bash") .arg("-c") .arg(script) .process_group(0)