Create IPP Everywhere printer through IPP
Update cupsd to support a "ppd-name" of "everywhere" to generate the PPD in the background:
- [x] Update cupsd to use
create_local_bg_threadinadd_printerwhen "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
P.S. commit 68506ac broke test suite, we will need to investigate further.
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
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 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 verified, tests are passing now. Thx!
Moving the printer icon stuff to 2.5.