Xfce Forum

Sub domains

You are not logged in.

#1 2013-11-30 14:49:11

Registered: 2013-11-21
Posts: 1

Custom Actions

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.



#2 2013-11-30 18:22:58

From: NL
Registered: 2003-11-26
Posts: 112

Re: Custom Actions

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.


Board footer

Powered by FluxBB