diff options
-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(()) } |