visidata icon indicating copy to clipboard operation
visidata copied to clipboard

[BUG] Opening in interactive shell using `xdg-open` yields `unexpected EOF`

Open LnLcFlx opened this issue 1 month ago • 4 comments

Small description xdg-open file.csv inside an interactive bash shell gives

%f': unexpected EOF while looking for matching `''

and exit code 1.

Expected result Using xdg-open outside a terminal (e.g. a script) it successfully opens a new terminal and visidata inside of it.

Steps to reproduce

  1. set visidata.desktop as default app for some mimetype e.g. text/csv (e.g. in ~/.config/mimeapps.list)
  2. xdg-open file.csv

Additional context

  • Linux 6.9.2-arch1-1
  • Python 3.12.3
  • Kitty 0.35.0

This is probably due to some string escape problem in the line

Exec=bash -i -c 'vd %f'

in visidata.desktop

LnLcFlx avatar May 28 '24 14:05 LnLcFlx