Open LnLcFlx opened 1 month ago
Can you see if it works if you change that line in visidata.desktop
to:
Exec=vd %F
That's two changes: get rid of bash, and then make %f
uppercase. %F
is a list of files, according to documentation. I would expect it is more versatile than the lowercase %f
that only handles one file.
I'd test it myself, but I can't figure out how to get my system to use visidata.desktop
. I've run into a bit too much trouble trying to get xdg-mime default
to work.
Can confirm this work (just having Exec=vd %F
).
Thank you, I will submit the change.
@anjakefala
I just looked into the history of the .desktop file, that the current configuration worked for you in #1738. Can you check whether the simpler version works for you: Exec=vd %F
? I based it on vim's .desktop file.
In particular, does it work for filenames that have spaces in the middle, and for opening multiple files at the same time?
Small description
xdg-open file.csv
inside an interactive bash shell givesand 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
visidata.desktop
as default app for some mimetype e.g.text/csv
(e.g. in~/.config/mimeapps.list
)xdg-open file.csv
Additional context
This is probably due to some string escape problem in the line
in
visidata.desktop