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:
parent
719e6e9777
commit
4dd83da627
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue