I have a program that I wrote and I want to run it on a given directory using custom actions. The program accepts two arguments 1) directory path 2) an integer.
I have included a custom action like so: /path/to/myprog %f 5 and edited the appearance conditions so that it shows in the right click menu for directories. However, the action does not run when clicked. I am not sure what is going wrong. Any help would be appreciated.
I assume you have tested the script/program from command line to ensure it works? If not do so. Secondly, may be use zenity to display values of parameters or how far the script goes. The thing where I usually struggle is that I forget to surround variables with "" which means the scripts break (w/o messages) when path or file name contain spaces.