jarun / nnn

n³ The unorthodox terminal file manager
BSD 2-Clause "Simplified" License
18.51k stars 743 forks source link

preview-tui with wezterm: No FIFO available! ($NNN_FIFO='') #1859

Closed qrockz closed 3 months ago

qrockz commented 3 months ago

.bshrc

export NNN_PLUG='i:imgview;o:preview-tui;p:preview-tabbed'
export NNN_FIFO="/tmp/nnn.fifo"

in preview-tui I've changed

 wezterm cli split-pane --cwd "$PWD" $split --percent "$NNN_SPLITSIZE" "$0" "$1" >/dev/null
 wezterm cli activate-pane-direction Prev ;;

to

flatpak run org.wezfurlong.wezterm cli split-pane --cwd "$PWD" $split --percent "$NNN_SPLITSIZE" "$0" "$1" >/dev/null
flatpak run org.wezfurlong.wezterm cli activate-pane-direction Prev ;;

because im running wezterm with flatpak.

Invoking preview-tui in nnn results in an Error wez

Even when starting nnn with -a option. (NNN_FIFO is set in .bashrc as you can see above)

Running preview-tui with kitty works on my system but unfortunately not with wezterm.

luukvbaal commented 3 months ago

Environment issue likely caused by flatpak then. Not familiar with flatpak but I suppose it has some way to pass along env to it's applications...

qrockz commented 3 months ago

@luukvbaal running wezterm as AppImage works :confused: