About cupsGetDest()

Michael Sweet mike at easysw.com
Sat Jul 8 18:52:58 PDT 2006


HAGINAKA wrote:
> Hi,
> 
> I have a question about cupsGetDest().
> 
> We'd like to get option settings(duplex,copies,and our original options)
> of user that print out from filter.
> Because a part of application send full options to cups with stdin.
> 
> We have store option into $HOME/.lpoptions file. And We try to get user
> option with cupsGetDest() like followings,
> 
> 	num_dests = cupsGetDests (&dests);
> 	dest = cupsGetDest (NULL, NULL, num_dests, dests);
> 
> As a result, maybe we get root's setting(/etc/cup/lpoptions) when any
> user print out.
> 
> Question 1:
> Is this specification of cupsGetDet() and cupsGetDests() will return
> root's option when any user print out ?
> 
> Question 2:
> Can we get user's option setting(=$HOME/.lpoptions) from filter with cups APIs ?

Don't do this.  Use argv[5] to get the options associated with the
print job from a filter.

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




More information about the cups mailing list