From c8ddde27e173d73c72b1f0a306d6cbb2d9641fb6 Mon Sep 17 00:00:00 2001 From: Flafy Date: Tue, 14 May 2024 21:18:45 +0300 Subject: [PATCH] Fix reveal_path blocks on linux (#11702) 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. --- 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 159e6e9220f7a760c41471f63be15a3d51cfa656..048d69e149cb0da5d84b3e8a24d2300e3d9610c9 100644 --- a/crates/gpui/src/platform/linux/platform.rs +++ b/crates/gpui/src/platform/linux/platform.rs @@ -305,12 +305,12 @@ impl 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) {