Limiting list of printers seen by user?
Erik Forsberg
forsberg at cendio.se
Mon Oct 31 07:07:08 PST 2005
Michael Sweet <mike at easysw.com> writes:
> Erik Forsberg wrote:
> > Michael Sweet <mike at easysw.com> writes:
> >
> >>> program and openoffice, but not for kprinter. I've filed STR 1335 with
> >>> a patch that corrects this.
> >> cupsGetPrinters() is deprecated, and has been since CUPS 1.1 was
> >> released. cupsGetDests() and the newer cupsGetDests2() are the
> >> recommended functions to use.
> > Deprecated or not - would it harm to add the patch? I'd very much
> > like
> > the limit-list-of-printers functionality to work for old software that
> > uses cupsGetPrinters as well.
>
> We could just as easily break existing applications that depend on
> cupsGetPrinters() to return all printers, not just the ones visible
> to the current user. cupsGetDests() is already user-specific (i.e.
> it returns the user's printer instances and defaults), so adding
> requesting-user-name was "safe" there.
You definitely have a point.
If I made a patch that read a configuration variable to determine if
requesting-user-name should be sent or not, would you accept that?
I'd be happy to create such a patch and have it accepted in CUPS v1.2,
instead of having to feed patched CUPS packages to my customer(s)
until all relevant applications use cupsGetDests.
Cheers,
\EF
--
Erik Forsberg OpenSource-based Thin Client Technology
Cendio AB Phone: +46-13-21 46 00
Web: http://www.thinlinc.com
More information about the cups
mailing list