]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't tag CUPS Bonjour printers as remote by default, to work around a
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 23 May 2007 15:08:29 +0000 (15:08 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 23 May 2007 15:08:29 +0000 (15:08 +0000)
bug in the Mac OS X print dialog.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6539 7a7537e8-13f0-0310-91df-b6672ffda945

scheduler/printers.c

index af1909b5d40c65331c7e5c7d605c65de76e48e33..ad0d71d7b3e96af41669ae3eff1cc615d8e9290c 100644 (file)
 #include <cups/dir.h>
 
 
+/*
+ * Currently Bonjour printers that are shared by CUPS servers are added
+ * manually by the user on Mac OS X systems.  While these printers *are*
+ * remote queues, the current print dialog will not show them if they
+ * (correctly) have the CUPS_PRINTER_REMOTE bit set.  This may change
+ * in future releases, however the code to do this is currently disabled.
+ *
+ * Define BONJOUR_IS_REMOTE to 1 to get the correct behavior...
+ */
+
+#define BONJOUR_IS_REMOTE 0
+
+
 /*
  * Local functions...
  */
@@ -2180,7 +2193,9 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)/* I - Printer to setup */
        cupsdSetString(&p->product, ppd->product);
 #endif /* HAVE_DNSSD */
 
+#if BONJOUR_IS_REMOTE
         ppdattr = ppdFindAttr(ppd, "APRemoteQueueID", NULL);
+#endif /* BONJOUR_IS_REMOTE */
 
        /*
         * Close the PPD and set the type...
@@ -2190,6 +2205,7 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)/* I - Printer to setup */
 
         printer_type = p->type;
 
+#if BONJOUR_IS_REMOTE
         if (ppdattr)
        {
         /*
@@ -2198,6 +2214,7 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)/* I - Printer to setup */
 
          printer_type |= CUPS_PRINTER_REMOTE;
        }
+#endif /* BONJOUR_IS_REMOTE */
       }
       else if (!access(filename, 0))
       {