I'm developing a Java desktop application that is to be used with Ubuntu. I need to add a context menu item which appears when the user right clicks on a file and to pass the fully qualified file path as an argument to the program.
After searching I found I can use Nautilus-Actions but I want to distribute my software. Therefore, it should be a shell script or installation option.
How do I achieve that?