lpadmin does not register the ICC profiles for the queue in Leopard
and earlier. The lpadmin in CUPS 1.4 and later *does* handle profile
registration (actually, cupsd does it so that the profiles are
registered no matter how you add the printer...)
This sounds hopeless. :(
Second, Add Printer and makequeues (the program that auto-adds
printers when you plug them in) do low-level IPP requests to add
the printer via the CUPS API - essentially what lpadmin does. They
also register the color profiles via the ColorSync APIs.
Do you know what APIs I should start at? I'm new to this profiling thing. :D
You can look at the code in CUPS 1.4's scheduler/ipp.c (look for the
"apple_*" functions) and the _ppdHashName function in cups/localize.c.
None of the color profile stuff is pretty, and I spent quite a bit of
time getting it right since there are tons of edge cases to deal with.
Also keep in mind that all of this profile stuff can change between
OS releases and it *must* run as root to register system-wide
profiles - use AuthorizationExec for that from a user session.
The easiest path is probably to just punt on auto-adding network
printers and use makequeues for USB (and I think Firewire) printers.
--
______________________________________________________________________
Michael R Sweet Senior Printing System Engineer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Printing mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden