Passing extra information from environment to backend?

Michael Sweet mike at easysw.com
Thu Oct 18 08:01:27 PDT 2007


Erik Forsberg wrote:
> Hi!
> 
> Is there some way to pass information from the environment of the user
> submitting a print job (via 'lp', 'lpr' or some program using libcups,
> for example KDE's or Gnome's printer systems), to the backend?

No, you can't do that, but you can pass options that can be seen by
the backend.

You'll likely have to modify libcups to get it to pass the option
automatically - look in cups/util.c to modify the cupsPrintFiles2
function (just add another string attribute in the IPP_TAG_JOB
group...)

-- 
______________________________________________________________________
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