<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 16, 2016 at 7:12 PM, Boudewijn Rempt <span dir="ltr"><<a href="mailto:boud@valdyas.org" target="_blank">boud@valdyas.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, 16 Aug 2016, Dmitry Kazakov wrote:<br>
<br>
> Can we somehow limit this behavior to network files only?<br>
<br>
</span>I would prefer not to. This also solves the issue we've seen where a<br>
failure to save breaks the original file.</blockquote><div><br></div><div>That is a good point, yes.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="">> 1) If some other application, like Blender, is waiting on Krita-edited file<br>
> with inotify (QFileSystemWatcher), it may go crazy when we rename and<br>
> delete the file. The inotify opject will be destroyed after that.<br>
<br>
</span>Did you test that, or is this just a hunch?<br></blockquote><div><br></div><div>Just a hunch. Needs to be tested before the merge.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> 2) What if the user works with 700MiB image? It mean he needs twice the<br>
> size of the image free space just to be able to save it. Many people will<br>
> be unhappy with it.<br>
<br>
</span>But far fewer people than are currently unhappy because our unsafe saving<br>
code breaks their files. And if the file hasn't been saved before there is<br>
no extra disk space needed,</blockquote><div><br></div><div>I agree, then we should probably have some clever choice of the temporary file folder? Like "if the saving to /tmp failed due to the lack of space, try saving into the same directory as the destination file". That will solve the issue for people who have different partitions for /home and /. Or just make it configurable somehow...<br><br></div><div>I know a lot of people who give quite small partitions to Windows (~50GiB) and use a separate partitions/drives for their working folders.<br></div><div><br> </div></div><br></div></div>