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

Tobias Boege taboege at gmail.com
Sun Nov 3 13:39:04 CET 2019

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.


"There's an old saying: Don't change anything... ever!" -- Mr. Monk

More information about the User mailing list