preservim / nerdtree

A tree explorer plugin for vim.
Do What The F*ck You Want To Public License
19.56k stars 1.44k forks source link

Failed to open image file with Image Viewer `eog` #1422

Open cgbahk opened 3 months ago

cgbahk commented 3 months ago

Environment

Steps to Reproduce the Issue

  1. Given image file, say image.svg of image.png
  2. Using NerdTree menu feature, browse to the image file in Nerdtree, press m then o to execute the file with system editor

Current Behavior (Include screenshots where appropriate.)

No log, image viewer not opened

Expected Result

Image viewer (eog, https://en.wikipedia.org/wiki/Eye_of_GNOME) opens up to show image.

I recently migrate into nvim. I've used vim in combination with NerdTree for 5+ years without this issue. Configuration is totally same between vim and nvim.

In nvim with same environment, I can open other types of files as usual, like opening directories or libreoffice files. This issue only occurs to image files (or maybe I haven't met any other bug file types).

It is hard to find related issue or stackoverflow thread. Also as there is no log, there is hardly no point to start with for me.

What would be the source of the issue, or at least, how can I debug..?