diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2023-07-30 12:54:32 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2023-07-30 12:54:32 -0400 |
commit | 11112087094046da2c6456ddbd9e90f982f86f11 (patch) | |
tree | cc6ba5990aabecca13e3e73478b1d58540252c6a | |
parent | 05d47fa451b89f700699f9bebc0a9746a645f2e3 (diff) |
attempt to fix xdg open for non-forking applications
-rw-r--r-- | src/commands/open_file.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands/open_file.rs b/src/commands/open_file.rs index ba71b12..1cbb0ce 100644 --- a/src/commands/open_file.rs +++ b/src/commands/open_file.rs @@ -73,9 +73,10 @@ fn _open_with_xdg( open::that_in_background(path); } else { backend.terminal_drop(); - let result = open::that(path); + let handle = open::that_in_background(path); + let result = handle.join(); backend.terminal_restore()?; - result?; + result.unwrap()?; } Ok(()) } |