Vanwege onderhoudswerkzaamheden die uw ervaring zouden moeten verbeteren, heeft deze website beperkte functionaliteit. Als een artikel uw probleem niet verhelpt en u een vraag wilt stellen, kan onze ondersteuningsgemeenschap u helpen in @FirefoxSupport op Twitter en /r/firefox op Reddit.

Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Meer info

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

How to ask Firefox to store temporary files in /tmp/mozilla_${USER}0

  • 3 antwoorden
  • 3 hebben dit probleem
  • 38 weergaven
  • Laatste antwoord van Terry

more options

I am using Firefox on Linux. Recently I noticed that Firefox changes the location temporary download files are saved.

For example, I ask Firefox to always ask when downloading a PDF file, then I click on a link to a PDF file. A dialog window pops out and I select "Open with (application name)". Then Firefox saves the PDF file in some location and opens the file with the application I select.

The problem is that I want to modify the some location above. An earlier version saves the file to `/tmp/mozilla_${USER}0`, where `${USER}` is my username on Linux. However, I recently noticed that this location is changed to `~/Downloads`. For some of reasons I want to keep my Downloads folder manually managed. Is there a way to change the temporary download location back to `/tmp/mozilla_${USER}0`?

I am using Firefox on Linux. Recently I noticed that Firefox changes the location temporary download files are saved. For example, I ask Firefox to always ask when downloading a PDF file, then I click on a link to a PDF file. A dialog window pops out and I select "Open with (application name)". Then Firefox saves the PDF file in '''some location''' and opens the file with the application I select. The problem is that I want to modify the '''some location''' above. An earlier version saves the file to `/tmp/mozilla_${USER}0`, where `${USER}` is my username on Linux. However, I recently noticed that this location is changed to `~/Downloads`. For some of reasons I want to keep my Downloads folder manually managed. Is there a way to change the temporary download location back to `/tmp/mozilla_${USER}0`?
Gekoppelde schermafbeeldingen

Alle antwoorden (3)

more options

You could try the following. I don't know whether it works if you choose to open a file. The quote is from searchfox. org. The relevant preference is in bold and in about:config.

browser.download.useDownloadDir - bool True - Save files directly to the folder configured via the browser.download.folderList preference. False - Always ask the user where to save a file and default to browser.download.lastDir when displaying a folder picker dialog

https://support.mozilla.org/en-US/kb/about-config-editor-firefox

more options

terry21 wrote

You could try the following. I don't know whether it works if you choose to open a file. The quote is from searchfox. org. The relevant preference is in bold and in about:config. browser.download.useDownloadDir - bool True - Save files directly to the folder configured via the browser.download.folderList preference. False - Always ask the user where to save a file and default to browser.download.lastDir when displaying a folder picker dialog https://support.mozilla.org/en-US/kb/about-config-editor-firefox

Thanks for the answer. That gives me a good hint.

Looks like the important source code is in "async getPreferredDownloadsDirectory() {" in https://searchfox.org/mozilla-central/source/toolkit/components/downloads/DownloadIntegration.jsm . When "browser.download.folderList = 2", the configuration option "browser.download.dir" is used.

So for me, I need to perform the following

  • Set "browser.download.folderList" to 2
  • Add a new configuration option "browser.download.dir", type is string, value is "/tmp/mozilla_${USER}0"
  • Find a way to create "/tmp/mozilla_${USER}0" manually every time I open Firefox

The above workaround works. Still, I hope there is a cleaner solution.

more options

I have long used the setting I mentioned. The file picker gives me the option to create a folder and I can add the parent folder as a 'location' in the left pane of the file picker.