cups icon indicating copy to clipboard operation
cups copied to clipboard

Create IPP Everywhere printer through IPP

Open michaelrsweet opened this issue 4 years ago • 6 comments

Copied from Apple CUPS #5919

Update cupsd to support a "ppd-name" of "everywhere" to generate the PPD in the background:

  • [x] Update cupsd to use create_local_bg_thread in add_printer when "ppd-name" is "everywhere"
  • [x] Update lpadmin to not create PPD locally
  • [x] Update admin.cgi to not create PPD locally
  • [ ] Update _ppdCreateWithIPP to copy the 128x128 icon as embedded data in PPD file.
  • [ ] Update cupsd/load_ppd to copy the icon data to ServerRoot/icons/PRINTERNAME.png
  • [ ] Update cupsd to expose printer icons from ServerRoot/icons

michaelrsweet avatar Jun 18 '21 15:06 michaelrsweet

P.S. commit 68506ac broke test suite, we will need to investigate further.

zdohnal avatar Jul 13 '21 10:07 zdohnal

This error appeared after the mentioned commit:

E [13/Jul/2021:12:30:21.337402 +0200] [cups-driverd] Unable to open \"/tmp/cups-zdohnal/share/model/everywhere\" - No such    file or directory

zdohnal avatar Jul 13 '21 10:07 zdohnal

Error log from the test run - the error happens during serving CUPS-Get-PPD request which hasn't been migrated to support everywhere model.

Currently I'm not sure whether we want to migrate this operation for everywhere or not, and if we want, how to get the ppd, because cups-driverd works with files, and _ppdCreateFromIPP() returns only char array for now.

zdohnal avatar Jul 13 '21 12:07 zdohnal

@zdohnal Not sure why I didn't catch this when I did testing, but fixed now:

[master 3a37c0de2] Fix regression caused by change for Issue #201.

michaelrsweet avatar Jul 14 '21 13:07 michaelrsweet

@michaelrsweet verified, tests are passing now. Thx!

zdohnal avatar Jul 15 '21 04:07 zdohnal

Moving the printer icon stuff to 2.5.

michaelrsweet avatar Oct 07 '21 13:10 michaelrsweet