Setting default printer using CUPS API

Azuri azuri.shah at fmr.com
Fri Sep 23 06:13:05 PDT 2011


I got it working. The way I did is, i set isDefault property to 1 of the printer and then calls cupsSetDest function again to set the printer with new changes.
> Linux Version is Ubuntu 11.4
> CUPS Version is 1.4.6
>
> > What operating system?
> >
> > What version of CUPS?
> >
> > On Sep 22, 2011, at 7:12 AM, Azuri wrote:
> >
> > > I am using cupsSetDefaultDest funtion to set the default destination of the printer. This works only when there is no default printer already set on the machine. Once it is set, the code doesnt work when trying to set new printer as default destination.
> > > _______________________________________________
> > > cups-dev mailing list
> > > cups-dev at easysw.com
> > > http://lists.easysw.com/mailman/listinfo/cups-dev
> >
> > __________________________________________________
> > Michael Sweet, Senior Printing System Engineer, PWG Chair
> >
>





More information about the cups mailing list