Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix reveal_path blocks on linux (#11702)

Flafyc8ddde27e173
diff --git a/crates/gpui/src/platform/linux/platform.rs b/crates/gpui/src/platform/linux/platform.rs
index 159e6e9220f..048d69e149c 100644
--- a/crates/gpui/src/platform/linux/platform.rs
+++ b/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()>) {