On Sun, Oct 31, 2004 at 10:41:14AM -0330, Lee Bigelow wrote:
Hello again,
Hi!
I did up a proto-type bash shell dpi for handling unsupported protocols, like mailto:, with external applications. I called it xproto.
It uses the config file $HOME/dillo/protorc to decide what to do. The plugin will make a default one you can edit when it's first run.
I'm working on the C version, but I'm just learning C, so it'll take me a bit.
Good you made a prototype. Dpi isn't that hard to program and I hope your code will encourage more developers to try it.
One thing I can't seem to figure out is how to send a url from the plugin to dillo and have dillo display that page. For example I would like the url gg:water to send dillo http://www.google.com/search?q=water For now I just have it open up another dillo. I tried sending <dpi cmd="open_url" url="http://www.google.com/search?q=water"> but that didn't work, booo.
Try the small patch below. It's a no frills version to keep you going on... Beware that there's a safety test in the function: Capi_verify_dpi_url_request() (Safety test: only allow dpi-urls from dpi-generated pages.) To avoid the "permission denied" message, while testing the patch, I asked for bookmarks (dpi generated page) and then the hello dpi (that was modified to send 'open_url'). If this is too much trouble, just disable the safety test! :-)
Again, xproto.filter.dpi is just a shell script, so play away. If you have any hints on the gg: thing let me know, please...
Please post the next prototype as an URL. If you don't have access to a web server please ask Jörgen to put it on our downloads directory. Sometime ago someone asked about how to make a slide show with dpi. Another thing to have in mind is how to tell a running Dillo to display another URL (for instance for sylpheed, or slides, or help manual apps.). Please try the small patch. That's the basis, details need to be thought better. ... & tell us how it works for you! -- Cheers Jorge.-