Running editor from xdg-open hangs broot
- Dominant language
- Rust
- Stars
- 12.9k
- Forks
- 314
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 6
Description
i know i can use F2 and everythng is nice. im in the process of creating my own xdg-open shell script that i just can use everywhere i want.
```
#!/bin/sh
case "$(file -b --mime-type "$1")" in
text/plain)
exec $EDITOR "$1"
;;
application/pdf)
exec firefox "$1"
;;
audio/* | video/*)
exec mpv "$1"
;;
image/jpeg)
exec feh "$1"
;;
*)
exec /usr/bin/xdg-open "$@"
;;
esac
```
if i do a normalen enter on a text file broot just hangs until i kill it manual. i even tried the ALT+ENTER way... broot still just hangs in there. any ideas?
Contributor guide
Research direction
Start by reproducing the reported hang when pressing Enter or Alt+Enter on a text file while using the supplied xdg-open script. Compare that behavior with the F2 workflow and trace the relevant command-launching entry point; done means opening the file no longer leaves broot hanging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, shell
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100