xpra icon
Bug tracker and wiki

Opened 22 months ago

Closed 3 weeks ago

#1115 closed enhancement (fixed)

win32 print system notifications

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: minor Milestone: 2.2
Component: printing Version: trunk
Keywords: Cc:

Description

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

Change History (3)

comment:1 Changed 9 months ago by Antoine Martin

Milestone: future2.2
Status: newassigned

comment:2 Changed 2 months ago by 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.

comment:3 Changed 3 weeks ago by Antoine Martin

Resolution: fixed
Status: assignedclosed

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)
Note: See TracTickets for help on using tickets.