[Dillo-dev]Invoke application upon clicking a link
Hello all, I would like to be able to click on a link and invoke a local executable. As you might already know, this is similar to the activeX IE or the shell model in mozilla. And this is for a quick and dirty demo, so security isn't an issue. Is there a way I can do this with dillo (short of modifying the source code). The HTML will be on the local machine too. Thanks all Huy
On Fri, Aug 20, 2004 at 09:05:13PM -0700, huy wrote:
Hello all, I would like to be able to click on a link and invoke a local executable. As you might already know, this is similar to the activeX IE or the shell model in mozilla. And this is for a quick and dirty demo, so security isn't an issue. Is there a way I can do this with dillo (short of modifying the source code). The HTML will be on the local machine too.
Sorry for the late answer, but this email arrived today to my INBOX. I don't know why. No there's no way to do it without modifying the source code. The good news is that this is easy. Just add an entry to the link's popup menu and hook your program there. If you need to get rid of the popup, remove the popup's hook and insert your program instead. HTH -- Cheers Jorge.-
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
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
participants (4)
-
Diego Sáenz
-
huy
-
Jorge Arellano Cid
-
Matthias Franz