Package: printconf
Severity: wishlist
Tags: patch

Hi

It would be nice to specify the preferred papersize via commandline option.
The attached patch works here, could you consider adding it?

Cheers
Steffen
--- aa-printconf        2008-11-26 09:22:14.000000000 +0100
+++ /usr/bin/aa-printconf       2008-11-26 09:24:17.000000000 +0100
@@ -47,11 +47,15 @@
                   help="include more detail about what's happening")
 parser.add_option('-f', '--force', dest='force', action='store_true',
                   help="force adding of a printer/queue if it already exists")
+parser.add_option('-p', '--papersize', dest='papersize', action='store',
+                 help="use standard papersize")
 options, args = parser.parse_args()
 
 dryrun = options.dryrun
 verbose = options.verbose
 force = options.force
+papersize = options.papersize
+
 
 if os.geteuid() and not dryrun:
     print >> sys.stderr, "Please run printconf as root or specify the 
--dry-run option."
@@ -244,6 +248,8 @@
     # Queue X is now set up with name based on the IEEE model
     # some sort of message here would be nice
     queues[qname] = True
+    if papersize:
+       foomatic.foomatic.set_printer_options(queuename=qname, options={ 
"PageSize": papersize})
     print
 
 # After loop, reinit CUPS

Reply via email to