Re: [dev] Surf download target directory?

From: Connor Lane Smith <cls_AT_lubutu.com>
Date: Mon, 21 Jun 2010 17:34:28 +0100

Hey,

On 21 June 2010 16:28, Donald Allen <donaldcallen_AT_gmail.com> wrote:
> It appears to me that there is no way in surf to control the target
> directory into which downloaded files are stored. If I'm correct, I'd like
> to suggest that such a capability be added. If I'm incorrect, please tell me
> how this is one.

If you mean the "default" directory, something like this in config.h
should work, as long as the directory exists:

- "xterm -e \"wget --load-cookies ~/.surf/cookies.txt '$0';\"", \
+ "xterm -e \"cd ~/dl && wget --load-cookies ~/.surf/cookies.txt '$0';\"", \

If you mean surf should actually prompt for a directory when you
download, you can probably just do something like this:

- "xterm -e \"wget --load-cookies ~/.surf/cookies.txt '$0';\"", \
+ "xterm -e \"cd `dmenu` && wget --load-cookies ~/.surf/cookies.txt '$0';\"", \

Hope this helps,
cls
Received on Mon Jun 21 2010 - 16:34:28 UTC

This archive was generated by hypermail 2.2.0 : Mon Jun 21 2010 - 16:36:02 UTC