I think i have an easier solution than that. First install the exec dpi that i atach. Read the dpi spec in dillo page for more info. Then use links to dpi:/exec/dillo to start dillo or dpi:/exec//usr/local/bin/dillo to start /usr/local/bin/dillo. With this dpi you can not pass parameters. If you make it understand %20 in the url passed, so commands can have parameters, please send the cahnges. Diego/DarkSpirit El Fri, 8 Oct 2004 12:08:05 +0200 Matthias Franz <Matthias.Franz@ujf-grenoble.fr> escribio:
On Fri, Aug 20, 2004 at 09:05:13PM -0700, huy wrote:
I would like to be able to click on a link and invoke a local executable. [...] Is there a way I can do this with dillo (short of modifying the source code).
Dear huy,
using the external viewers patch (see my posting to this list) and the Dillo dpi framework, there is a short solution to your problem:
Save the attached shell scipt to ~/.dillo/dpi/runcmd/runcmd.filter.dpi and put the line
application/x-runcmd; %{cmd}
into your ~/.mailcap . Then any link of the form "dpi:/runcmd/prog" starts the program "prog".
See the Dillo file doc/Dpid.txt for more on (filter) plugins.
security isn't an issue
I hope so since otherwise you'd better forget all this!
All the best, -- Matthias Franz
Section de Mathématiques, Université de Genève, Suisse