Xpra: Ticket #1115: win32 print system notifications
The cups backend does give us print job status notification, which we use to delete the print job's temporary file.
Apparently, we should be able to achieve something similar for win32 using ctypes: Received Print Job Python
Sun, 19 Feb 2017 07:18:35 GMT - Antoine Martin: status, milestone changed
- status
changed from new to assigned
- milestone
changed from future to 2.2
Sat, 16 Sep 2017 16:12:25 GMT - Antoine Martin:
r16881 exposes the print jobid, we could then use catch printer event in python and wait for the DELETED
notification for this job before returning from the "print" tool we exec (with a long timeout), then we can just delete the temporary file.
Wed, 01 Nov 2017 10:34:43 GMT - Antoine Martin: status changed; resolution set
- status
changed from assigned to closed
- resolution
set to fixed
Done in r17277 (and found some minor bugs - fixes to backport).
Some important notes:
- we wait for the "DELETING" or "OFFLINE" job status, as "DELETED" does not seem to ever get triggered
- the code ends up being more complicated because we have to watch for the job status before we start submitting it, otherwise it may complete so quickly that we never see it and end up waiting forever
- the print job timeout is now configurable:
XPRA_PRINT_JOB_TIMEOUT
defaults to 3600 seconds (1 hour)
Sat, 23 Jan 2021 05:15:23 GMT - migration script:
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1115