Rofi (and i3) freeze when attempting to launch a termite instance from a custom mode. The terminal instance successfully launches, however, the rofi dialog never closes and keyboard input stops working entirely until the rofi instance is killed in another tty.
Apologies if this has already been answered -- I did go through as many relevant existing issues relating to rofi freezing/hanging, and also issues related to termite, zsh, etc., but was not able to find any that seemed to fit the problem I'm having.
Version: 1.5.4-73-g1e4409c6 (makepkg)
rofi -show notes -modi notes:rofi-notes.sh
rofi-notes.sh (simplified)
#!/bin/zsh
NOTES_DIR="/path/to/notes"
if [ -z $@ ]; then
fd -t f md $NOTES_DIR
else
target=`fd -t f md $NOTES_DIR | grep --color='none' "$@"`
if [ -f "$target" ]; then
termite -e "nvim $target" > /dev/null
fi
fi
rofi-notes.sh script above to a filerofi -show notes -modi notes:rofi-notes.shThe fd command works as expected, and the correct file is opened in a new termite/nvim instance, but then everything freezes.
Can move the mouse, but keyboard and mouse input no longer work until rofi is killed.
Neovim launched in a new termite instance, opening the selected file.
Additional details:
Other things tested:
fdPlease do not submit reports related to wayland, see
here for more
information.
Don't launch the terminal blocking, rofi will keep waiting for output from the script (to display)..
Duplicate of: #1063, #864 and info in #857
Thanks! Indeed, this did the trick:
coproc termite -e "nvim $target" > /dev/null
I Appreciate the quick help. Stay safe!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Thanks! Indeed, this did the trick:
I Appreciate the quick help. Stay safe!