]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/printers.c
Add commandtops filter for PostScript printer auto-configuration and
[thirdparty/cups.git] / scheduler / printers.c
index 3937d96a9ecc46591e60fa39d3e602db1567f67f..5378772aa8518642a09f5944da0c6161831df54f 100644 (file)
@@ -2297,11 +2297,15 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)/* I - Printer to setup */
        if (ppd->num_filters == 0)
        {
         /*
-         * If there are no filters, add a PostScript printing filter.
+         * If there are no filters, add PostScript printing filters.
          */
 
+          add_printer_filter(p, p->filetype,
+                            "application/vnd.cups-command 0 commandtops");
           add_printer_filter(p, p->filetype,
                             "application/vnd.cups-postscript 0 -");
+
+          p->type |= CUPS_PRINTER_COMMANDS;
         }
 
        /*