[Gambas-user] "/tmp/gambas.1000" folder question

Gianluigi bagonergi at gmail.com
Sun Nov 3 14:11:39 CET 2019

Il giorno dom 3 nov 2019 alle ore 13:40 Tobias Boege <taboege at gmail.com> ha

> On Sun, 03 Nov 2019, Gianluigi wrote:
> > Thanks to Bruce for the answers.
> > I specify my question better.
> > In the past I have been criticized because I posted examples that copied
> > files to the tmp folder.
> > Then I ask you; which is the best method to post an example project and
> > avoid dirtying the user's home folder without using /tmp?
> > I suppose that not all those who download the examples are system users.
> > Could it be a good solution to create a temporary folder in the user's
> home
> > and delete it when the program exits?
> >
> If you can be sure that your "photos" project doesn't hijack and then
> delete my personal "photos" directory, go ahead. People will be extremely
> mad if something messes with their data when they just wanted to help
> someone from the mailing list. It's THEIR HOME for a reason.
> (Of course, everyone should read and understand source code they got
> from a stranger first before running it. Oh, and do we have docker
> images for a full Gambas install yet?)
> In my book, /tmp is much better for runtime data than the user's home
> directory and with Gambas' /tmp/gambas.$uid/$pid directories, you can
> be sure that you don't step on other people's toes. Unless the process
> crashes, Gambas will even tidy up after you automatically. No reason
> to reinvent that and maybe make a mistake by doing so.
> I'd like to hear the criticism about putting things into /tmp, especially
> when we are talking about example projects.
> Regards,
> Tobi
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----

Hi Tobias,

thank you very much, you have dispelled my doubts (doubts put in my mind by
others :-P).
>From now on I will always use the /tmp folder to copy the sample files,
avoiding getting the home folders dirty.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20191103/464ce094/attachment.html>

More information about the User mailing list