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

qubes: Clean up temporary files #579

Merged
merged 2 commits into from
Oct 5, 2023
Merged

qubes: Clean up temporary files #579

merged 2 commits into from
Oct 5, 2023

Conversation

apyrgio
Copy link
Contributor

@apyrgio apyrgio commented Oct 4, 2023

Create a temporary dir before the conversion begins, and store every file necessary for the conversion there. We are mostly concerned about the second stage of the conversion, which runs in the host. The first stage runs in a disposable qube and cleanup is implicit.

Fixes #575
Fixes #436

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Extend the PixelsToPDF converter by adding an additional `tempdir`
argument. This argument can be used to make the conversion use a
different temporary directory other than `/tmp`.

For containers, this extra arguments makes no difference, as it won't be
used. For Qubes, this argument will allow storing files in a temporary
dir that will be cleaned up once the conversion completes. Previously,
these files would linger in the user's `/tmp`.

Refs #575
Create a temporary dir before the conversion begins, and store every
file necessary for the conversion there. We are mostly concerned about
the second stage of the conversion, which runs in the host. The first
stage runs in a disposable qube and cleanup is implicit.

Fixes #575
Fixes #436
Copy link
Contributor

@deeplow deeplow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@apyrgio apyrgio merged commit bdf3f8b into main Oct 5, 2023
@apyrgio apyrgio deleted the 575-tmp-cleanup branch May 22, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Qubes: Clean up temporary files Qubes: allow parallel conversions
2 participants