I am writing a python script that can be run as a Nautilus script (but not only).
I use setuptools. Imagine that in my setup.py I use entry_points that creates a command named my_nautilus_script (this is working well).
I would like that pip install my_nautilus_script also adds say a xxx.sh in ~/.local/share/nautilus/scripts/ which calls in turn my_nautilus_script command.
A few questions about that:
- Is it possible?
- Is it a good way to look at the problem? is there a better/cleaner alternative? of course, the user can be asked to create
xxx.shhim/her-self... but this is not what I want. - As a Nautilus script, my script is particularly intended for Linux users but not only. I do not want
pip installto fail for Windows users).