-
Notifications
You must be signed in to change notification settings - Fork 11
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
A amount of temporary PPD files in the /tmp directory have not been deleted when the legacy-printer-app is shutdown #17
Comments
@michaelrsweet |
@szlt5 So currently there is no callback for system shutdown, just for printer deletion. But for a typical printer application you can simply do your cleanup when I might be able to update the |
My explanation may be incomplete. |
I propose several solutions, @tillkamppeter can you give me some suggestions? |
@szlt5 A persistent copy of the PPD file should not be stored in /tmp - it sounds like this file needs to remain until the print queue is removed. Instead, |
Describe the bug
A amount of temporary PPD files in the /tmp directory have not been deleted when the legacy-printer-app is shutdown.
Expected behavior
The temporary PPD files in the /tmp directory should be deleted when the legacy-printer-app is shutdown.
Additional context
Is the following solution feasible?
(1) In the _prDriverSetup():don't copy a temporary PPD file and just store the real PPD file path.
(2) In the _prCreateJobData(): copy a temporary PPD file from the real PPD file path.
(3) In the _prFreeJobData(): Unlink the temporary PPD file.
The text was updated successfully, but these errors were encountered: