Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting printer name within cups backend



William Jens wrote:
I must be missing something obvious, but I'm trying to call cupsGetPPD(printername) from within my cups backend, but I don't see
where to get the printer name.

The PRINTER environment variable will have the printer name; just
use getenv("PRINTER") to get the string pointer.

Also, what's the best way to go about installing a CUPS backend and
related printer(s)? While working on this I've put my PPD file &
backend file in place, restarted cupsd & used lpadmin to build my
printer, but I'm hoping for something less intrusive.

The restart of cupsd or reboot of the machine is the only way to
register a backend with the scheduler. Once registered you can use
lpadmin, the Print Center, or any other client you come up with to
add the printer.

--
______________________________________________________________________
Michael Sweet, Easy Software Products email@hidden
Printing Software for UNIX http://www.easysw.com
_______________________________________________
printing mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/printing
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.