[cups.general] STR #1923 fix incomplete?

Michael Sweet mike at easysw.com
Thu Feb 15 09:09:52 PST 2007


Tim Waugh wrote:
> The fix for STR #1923 (no way to distinguish user-set job default
> options from system defaults) doesn't quite seem to fix the original
> problem.
> 
> With the fix in place, there is at least a way of finding out *what* the
> job default options are even for options that aren't user-set, but there
> is no way to know if any given option has been set by the user or if it
> is a system default.
> 
> The only hack I can think of is to experimentally alter the queue: try
> removing an option and re-fetch, to see if it has changed.  But even
> this would not let me discover a user-set option that has been set
> (coincidentally) to the system default's value.
 > ...

In this situation, just do your own IPP_GET_PRINTER_ATTRIBUTES
request to get the server-side defaults.  cupsGetDests() will
return a composite of the client-side defaults - suitable for
user applications but not for administrative apps.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com




More information about the cups mailing list