visidata
visidata copied to clipboard
[BUG] Opening in interactive shell using `xdg-open` yields `unexpected EOF`
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
- set
visidata.desktop
as default app for some mimetype e.g.text/csv
(e.g. in~/.config/mimeapps.list
) -
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