Re: [Sugar-devel] [PATCH Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-02 Thread Martin Langhoff
On Mon, Oct 1, 2012 at 3:14 PM, Manuel Kaufmann humi...@gmail.com wrote: This patch is a workaround to that behaviour. Every time that Browse is started it looks for all the .goutputstream files in the instance directory and checks its mtime. If it greater than 1 day it removes the old

Re: [Sugar-devel] [PATCH Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-02 Thread Manuel Kaufmann
On Tue, Oct 2, 2012 at 6:40 AM, Martin Langhoff martin.langh...@gmail.com wrote: Good, but not enough. Compare mtime also to our boot time (ie: now - uptime). If the file is from before we booted, needs to be nuked. You say that I should add this test as well, right? I mean, compare if the file

[Sugar-devel] [PATCH Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-01 Thread Manuel Kaufmann
When a download is cancelled for any reason WebKit leaves a temporary file called .goutputstream-* in the instance directory. This is because of a bug in GLib: * https://bugzilla.gnome.org/show_bug.cgi?id=629301 This patch is a workaround to that behaviour. Every time that Browse is started it