Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up tmp-folders. #529

Closed
processing-bot opened this issue Jun 15, 2013 · 7 comments
Closed

Clean up tmp-folders. #529

processing-bot opened this issue Jun 15, 2013 · 7 comments

Comments

@processing-bot
Copy link
Collaborator

Created by: aengelke

It'd be nice if Processing would delete unused tmp-folders. (After 1 month of use I had more than 1000 folders!)

@processing-bot
Copy link
Collaborator Author

In GitLab by @mckennapsean1 on Jun 16, 2013, 09:07

...or perhaps create a setting for it in the PDE.

Then it can be cleared out manually with a button, or set to automatically remove older folders.

@processing-bot
Copy link
Collaborator Author

In GitLab by @hamoid on Jul 3, 2013, 12:14

Or for geeks: mount your /tmp as a ram drive. It gets cleared every time you shut down your computer, your hard drive gets a longer live, and if you export images from processing to /tmp, they get written in half the time :)

@processing-bot
Copy link
Collaborator Author

Created by: martiSteiger

Please notice that there are additional temp files (*.err, *.log) using MS-Windows at
C:\Users\AppData\Roaming\Processing\console for cleaning.

!!! In any case realizing temp-files cleaning up should be a major issue for processing v3.0 !!!

@processing-bot
Copy link
Collaborator Author

Created by: wozhub

Processing: Flooding /tmp dir since 2013.

I made my own workaround. An sh script that changes the temporary files folder using an alias, and removes inactive files.

Download this gist and place it on processing root folder.

Add the following line once the processing script establishes the APPDIR, right below "log APPDIR".
. $APPDIR/tmpDirFix.sh

@processing-bot
Copy link
Collaborator Author

Created by: geoffreyvd

Still not fixed, I looked in my temp folder today and saw hundreds of processing folders. They are atleast 8 months old

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Resolved for Processing 4.0 with ae874f6.

There is now a temp.days (and console.temp.days) entry in preferences.txt that determines how many days the files should be kept around. Files and folders that are modified earlier than that time span will be moved to the Trash or Recycle Bin (if available) or simply deleted.

The delay in implementation is that this has to be done carefully—anything that involves deleting files is especially scary. The With the ability to move things to the Trash/Recycle Bin we're at least a little safer. But the software has millions of downloads, and so that's a lot of machines where something bad can happen.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant