Fix reveal_path blocks on linux (#11702)

Flafy created

If you go to the file tree and press "x" (which is
"project_panel::RevealInFinder"). It will open the default file
manager(in my case nautilus). But on Linux it makes Zed unresponsive.
This fixes that.

Release Notes:

- Fixed Zed blocked after opening file manager in the file tree on
Linux.

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 🔗

@@ -305,12 +305,12 @@ impl<P: LinuxClient + 'static> Platform for P {
 
     fn reveal_path(&self, path: &Path) {
         if path.is_dir() {
-            open::that(path);
+            open::that_detached(path);
             return;
         }
         // If `path` is a file, the system may try to open it in a text editor
         let dir = path.parent().unwrap_or(Path::new(""));
-        open::that(dir);
+        open::that_detached(dir);
     }
 
     fn on_quit(&self, callback: Box<dyn FnMut()>) {