[cups] "Share This Printer" by default?

Alex Korobkin korobkin+cups at gmail.com
Fri Jan 9 07:25:16 PST 2015


I use this patch to have the checkbox checked by default:

--- a/templates/add-printer.tmpl
+++ b/templates/add-printer.tmpl
@@ -34,7 +34,7 @@
 </TR>
 <TR>
 <TH CLASS="label">Sharing:</TH>
-<TD><INPUT TYPE="CHECKBOX" NAME="PRINTER_IS_SHARED"
{PRINTER_IS_SHARED=1?CHECKED:}>
+<TD><INPUT TYPE="CHECKBOX" NAME="PRINTER_IS_SHARED" CHECKED>
 Share This Printer</TD>
 </TR>
 <TR>


2015-01-09 10:23 GMT-05:00 Johannes Meixner <jsmeix at suse.de>:

>
> Hello,
>
> On Jan 9 06:53 Grant wrote (excerpt):
>
>> Can I have CUPS check the "Share This Printer" checkbox by default?
>>
>
> From
> https://answers.launchpad.net/hplip/+question/260285
> I notice that you use CUPS 1.7.5
>
> Accordingly
> http://cups.org/documentation.php/doc-1.7/ref-cupsd-conf.html
> is the matching documentaion, see "DefaultShared" therein
> that reads in particular
> "The DefaultShared directive specifies whether printers are
>  shared (published) by default. The default is Yes."
>
> But that default is only what it is at cups.org.
>
> For the cupsd in your Linux distribution (gentoo 2.2 64 bit
> according to https://answers.launchpad.net/hplip/+question/260285)
> the default could be different.
>
> Furthermore the default for a "Share This Printer" checkbox
> (you didn't tell in what tool that "Share This Printer" checkbox is)
> in whatever printer setup tool might be independent of the
> DefaultShared directive for your cupsd.
>
>
> Kind Regards
> Johannes Meixner
> --
> SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard, Jennifer Guild,
> Dilip Upmanyu, Graham Norton - HRB 21284 (AG Nuernberg)
>
>
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups
>



-- 
-Alex



More information about the cups mailing list