[Desktop Entry]
Version=1.0
Type=Application
Name=xls_to_csv
Comment=convert xls to csv using ssconvert
Exec=/path/to/xls_to_csv.sh %u
Icon=edit-copy
Path=
Terminal=false
StartupNotify=false
Actions=
Categories=Copy;Utility
and placed it in ~/local/share/applications.
Next I added this “application” as an “open with” alternative in nemo file manager, so I can right-click on an .xlsx-file, choose open with → xls_to_csv.desktop
This doesn’t seem to work. When I run the command in terminal I get the output xdg-open: unexpected argument 'test.xlsx'
An alternative seems to be to use gtk-launch, at least in the terminal it works.
Now my question is how to tell nemo to ues gtk-launch for executing my xsl_to_csv.desktop file instead of xdg-open?
Also, since i guess you do have ~/.local/bin/ and is in the $PATH, why not add your script there and no need to provide /the/longest/path/to/execute/a/small/script …
Not sure how your .sh is done, but if in terminal you have to specify the file to convert it, then you also have to do to your context menu (regardless that is a .desktop file or .nemo_action file) how to work on your right clicked file, otherwise will not do anything i guess.