]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Ignore the APPrinterIconPath PPD attribute 73/head
authorPranav Batra <batrapranav@chromium.org>
Wed, 6 Jan 2021 22:34:22 +0000 (22:34 +0000)
committerPranav Batra <batrapranav@chromium.org>
Wed, 13 Jan 2021 23:16:37 +0000 (23:16 +0000)
The icon file is only used on macOS (in which case
HAVE_APPLICATIONSERVICES_H is enabled).

BUG=none
TEST=cq

Change-Id: I58931df5788ab1c9f76b4cb2a958c51dc084083b

cups/ppd-cache.c

index e27b05bab4f349f82d32348246a7d0ad2e69d40f..58f85e8554bf8b737307f11d57e923b95b2f81ee 100644 (file)
@@ -1916,8 +1916,10 @@ _ppdCacheCreateWithPPD(ppd_file_t *ppd)  /* I - PPD file */
        ppd_attr = ppdFindNextAttr(ppd, "cupsICCProfile", NULL))
     cupsArrayAdd(pc->support_files, ppd_attr->value);
 
+#ifdef HAVE_APPLICATIONSERVICES_H
   if ((ppd_attr = ppdFindAttr(ppd, "APPrinterIconPath", NULL)) != NULL)
     cupsArrayAdd(pc->support_files, ppd_attr->value);
+#endif
 
  /*
   * Return the cache data...