<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 3, 2019 at 10:58 AM Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 03/12/2019 09.50, Nyall Dawson wrote:<br>
>> Is this by design? Or is it a bug because there is 'tmp' in the path?<br>
>> I tested also to put it in ~/tmp but then it is OK...<br>
<br>
> By design -- it was added because many of the processing providers<br>
> which rely on 3rd party utilities (e.g. grass, saga) put temporary<br>
> outputs there, and users weren't getting any warnings that these are<br>
> just temporary. Basically the warning which previously showed only for<br>
> memory layers has been extended to include anything inside the<br>
> operating system's temporary folder (i.e. /tmp, but not ~/tmp on<br>
> Linux).<br>
<br>
Ah, thanks Nyall. I understand the reasoning, and agree...<br>
<br>
Though it does not feel as perfect yet:<br>
<br>
The memory tooltip of this layer says:<br>
 "Temporary Layer Only. Contents will be discarded after closing QGIS"<br>
But compared to a real memory layer, it is still there if you reopen the<br>
project (or quit/open QGIS).<br>
So it seems we mix two concepts?<br>
<br>
Thinking out loud here, I know this will all cost time/energy, so I<br>
understand if this is ignored...<br>
<br>
What about leaving out the 'memory' icon, and only warn users IF they<br>
have layers in temporary places? And instead of:<br>
"This project includes one or more temporary layers. These layers are<br>
not permanently saved and their contents will be lost. Are you sure you<br>
want to proceed?"<br>
Something like:<br>
"This project includes one or more layers which are saved in temporary<br>
directories". If you want to keep that data, please save or copy the<br>
data to non-temporary dirs" ?<br>
<br>
Or as bonus: maybe thing of some icon for these processing output<br>
layers: maybe the little 'gear'-icon we use for processing?<br>
In the case of a processing output I will then see the little gear icons<br>
(AND get the warning).<br>
In my usecase I will only get the warning (and I will ignore it :-) )<br>
<br>
As said: I understand there are probably more important things to do,<br>
just wanted to think about it a little...<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<br></blockquote></div><br><div>Hi Richard, <br></div><div><br></div><div>I agree with you that in-memory layer and file-based layers stored in temporary folders are two different things and we should try to not mix the concepts.</div><div><br></div><div>From a UX perspective they both deserve a warning/icon that reminds the user that they will be eventually lost if not action is taken, we just need to make sure that the user understands the difference.</div><div><br></div><div>I'd open a question dialog in both cases when the layers are unloaded but I would choose a (slightly?) different icon to mark the memory and tmp layers and certainly a different tooltip message.</div><div><br></div><div></div><div><br></div><div>Cheers<br></div><div><br></div><div><br></div><div>-- </div><div dir="ltr" class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div>