broot
broot copied to clipboard
Pressing `right` to open file leaves a `xdg-open` zombie process
STEPS TO REPRODUCE:
-
broot
- Press
right
on a file -
htop --tree
OBSERVED:
xdg-open
zombie under broot
Precision: this process disappears when broot is closed.
Broot doesn't call xdg-open directly but through the opener
crate (https://github.com/Seeker14491/opener)
It would be interesting to check whether the problem is in the opener crate or if broot misuses it.
And whether it happens with similar crates too (eg the open
crate).
Seems indeed a problem in that crate:
https://github.com/Seeker14491/opener/blob/ff6e2599f1360332dac2b87877f9e1694ad654c3/opener/src/linux_and_more.rs#L53
Note the return value of open_with_system_xdg_open
is dropped.