From 4dd83da627dd60a7e917cfd1ba34f472ed1fe3d7 Mon Sep 17 00:00:00 2001 From: Moritz Bitsch Date: Fri, 17 May 2024 20:00:57 +0200 Subject: [PATCH] Fix hang when opening URL in first browser window (#11961) If opening a url opens the first browser window the call does not return completely blocking the ui until the browser window is closed. Using spawn instead of status does not block, but we will loose the exitstatus of the browser window. Release Notes: - N/A --- crates/gpui/src/platform/linux/platform.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui/src/platform/linux/platform.rs b/crates/gpui/src/platform/linux/platform.rs index 6cd533cfe0..8e261d906f 100644 --- a/crates/gpui/src/platform/linux/platform.rs +++ b/crates/gpui/src/platform/linux/platform.rs @@ -492,7 +492,7 @@ pub(super) fn open_uri_internal(uri: &str, activation_token: Option<&str>) { if let Some(token) = activation_token { command.env("XDG_ACTIVATION_TOKEN", token); } - match command.status() { + match command.spawn() { Ok(_) => return, Err(err) => last_err = Some(err), }