summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2023-07-30 12:54:32 -0400
committerJeff Zhao <jeff.no.zhao@gmail.com>2023-07-30 12:54:32 -0400
commit11112087094046da2c6456ddbd9e90f982f86f11 (patch)
treecc6ba5990aabecca13e3e73478b1d58540252c6a
parent05d47fa451b89f700699f9bebc0a9746a645f2e3 (diff)
attempt to fix xdg open for non-forking applications
-rw-r--r--src/commands/open_file.rs5
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(())
}