Firefox downloads destination question

Running with KDE desktop and LEAP 15.3 with Firefox 78.13.0esr.
I have my Firefox preferences set up so that downloaded files are sent to my ~/Downloads directory. Usually downloaded files arrive there and all is good.

Sometimes however downloads end up in /tmp/mozilla_budge0.

There are a bunch of other stuff in /tmp but until now I always thought this was all just system stuff and only transient and volatile.

Now I know where to look for downloads that do not appear where expected but what is going on and how do I correct this unsought result for the browser downloads.

Budge.

Are you first opening/viewing the files that end up in /tmp? If so it may be the “where is the downloaded file” issue, which Mozilla addressed in FF 91.

See this article for a description of the problem: Firefox 91: download behavior when opening files with apps changes - gHacks Tech News

My Firefox always asks me where to store things (and I am glad with that because different things have to go to different places). I assume you have configured something that says: do not ask me, but down load to ~/Downloads.

Did you ever notice what could be the difference of things going to ~/Downloads and going to /tmp/mozilla_$USER. Are the ones images and the other PDFs or anything?

I always thought this was all just system stuff and only transient and volatile.

Users can also store files in /tmp (a feature when the user has restricted space for his home directory), but indeed the idea is that /tmp will be empty direct after a boot.

And yes, application programs may be designed to store temporary there and clean things up when exiting. The idea is that even when that clean-up failed (e.g. due to a power down or other system breaking event), the clean-up will be done on next boot.

And thus you will find more direcories/files in /tmp where your user is the owner. See for yourself:

l /tmp | grep $USER

Many thanks to Paul and Henk.
You have told me all I need to know.
I shall start using the “Always ask” where to save files for now. At least then I shall know and thanks for the links which explain it all.
Budge