<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno dom 3 nov 2019 alle ore 13:40 Tobias Boege <<a href="mailto:taboege@gmail.com">taboege@gmail.com</a>> ha scritto:<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 Sun, 03 Nov 2019, Gianluigi wrote:<br>
> Thanks to Bruce for the answers.<br>
> I specify my question better.<br>
> In the past I have been criticized because I posted examples that copied<br>
> files to the tmp folder.<br>
> Then I ask you; which is the best method to post an example project and<br>
> avoid dirtying the user's home folder without using /tmp?<br>
> I suppose that not all those who download the examples are system users.<br>
> Could it be a good solution to create a temporary folder in the user's home<br>
> and delete it when the program exits?<br>
> <br>
<br>
If you can be sure that your "photos" project doesn't hijack and then<br>
delete my personal "photos" directory, go ahead. People will be extremely<br>
mad if something messes with their data when they just wanted to help<br>
someone from the mailing list. It's THEIR HOME for a reason.<br>
(Of course, everyone should read and understand source code they got<br>
from a stranger first before running it. Oh, and do we have docker<br>
images for a full Gambas install yet?)<br>
<br>
In my book, /tmp is much better for runtime data than the user's home<br>
directory and with Gambas' /tmp/gambas.$uid/$pid directories, you can<br>
be sure that you don't step on other people's toes. Unless the process<br>
crashes, Gambas will even tidy up after you automatically. No reason<br>
to reinvent that and maybe make a mistake by doing so.<br>
<br>
I'd like to hear the criticism about putting things into /tmp, especially<br>
when we are talking about example projects.<br>
<br>
Regards,<br>
Tobi<br>
<br>
-- <br>
"There's an old saying: Don't change anything... ever!" -- Mr. Monk<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br></blockquote><div><br></div><div>Hi Tobias,<br><br>thank you very much, you have dispelled my doubts (doubts put in my mind by others :-P).<br>>From now on I will always use the /tmp folder to copy the sample files, avoiding getting the home folders dirty.<br><br>Regards<br>Gianluigi <br></div></div></div>