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
This commit is contained in:
Moritz Bitsch
2024-05-17 11:00:57 -07:00
committed by GitHub
parent 719e6e9777
commit 4dd83da627
+1 -1
View File
@@ -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),
}