Use /usr/bin/env to run bash restart script (#33936)

Alvaro Parker created

Closes #33935

Release Notes:

- Use `/usr/bin/env` to launch the bash restart script

Change summary

crates/gpui/src/platform/linux/platform.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

crates/gpui/src/platform/linux/platform.rs 🔗

@@ -200,8 +200,8 @@ impl<P: LinuxClient + 'static> 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)