tazweb rev 95

Make sure HOME/Downloads folder exist before going into it.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Apr 29 20:27:16 2011 +0000 (2011-04-29)
parents dc7215b94384
children b8c741e8bc63
files src/main.c
line diff
     1.1 --- a/src/main.c	Fri Apr 29 10:44:16 2011 +0100
     1.2 +++ b/src/main.c	Fri Apr 29 20:27:16 2011 +0000
     1.3 @@ -192,7 +192,7 @@
     1.4  	const gchar* buffer;
     1.5  	uri = webkit_download_get_uri(download);
     1.6  	asprintf(&buffer, "xterm -T 'Download' -geom 72x10+0-24 -e \
     1.7 -				'cd $HOME/Downloads && wget -c %s; sleep 2' &", uri);
     1.8 +				'mkdir -p $HOME/Downloads && cd $HOME/Downloads && wget -c %s; sleep 2' &", uri);
     1.9  	system(buffer);
    1.10  }
    1.11