I was able to add FTP support to my copy of Dillo with a one line
patch in IO/Url.c:
static UrlMethod2_t cccList[] = { {"http" , a_Http_ccc},
+ {"ftp" , a_Http_ccc},
{"file" , a_File_ccc},
Of course this is cheating becuase it requires an http proxy
server. But given that I have such a server running, ftp in Dillo
works well.
Perhaps Dillo could look at the ftp_proxy environment variable, or an
ftp_proxy option in the config file, and if it is set use that option
to handle ftp URLs by sending http requests to the proxy.
I don't know what the maintainers will think of this idea. From one
point of view it is a good thing to do because it doesn't add
duplicate ftp-handling code to Dillo itself - the proxy server already
has code to make ftp requests and translate them to web pages, so why
not use it? On the other hand the maintainer may feel that ftp should
be either fully supported within Dillo or not supported at all.
(Using an external program for ftp is okay, but having the ftp sites
shown directly within Dillo is much smoother and faster. You can use
the Back button, for example.)
But anyway I hope some people find the patch useful in the short term.
--
Ed Avis <ed(a)membled.com>