GTK Calls from CUPS Backend - Getting filename
Michael Sweet
mike at easysw.com
Tue Aug 2 05:22:50 PDT 2005
Mohit Kumar wrote:
>>No, you can't do that because your backend will be running as root,
>>possibly on a different system, and not as the user that submitted
>>the job on the same system.
>>
>>--
>>______________________________________________________________________
>>Michael Sweet, Easy Software Products mike at easysw dot com
>>Internet Printing and Publishing Software http://www.easysw.com
>
>
>
> Hi Michael,
>
> In this scenario, how can my backend request for a filename to which I can print? I am facing a problem where I want to request the file name to which the file should be printed from the user. Is there some property which i need to set to enable cups to send me that data too?
You could pass the filename as a job option, e.g.:
lp -o output-filename=foo.pdf bar.jpg
Aside from that, you'll need to come up with a (network/named pipe)
protocol to communicate between your backend and a desktop
application...
--
______________________________________________________________________
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