Page 1 of 2

Blank icon on PDF files [CLOSED]

Posted: Thu Oct 27, 2022 3:22 pm
by Maxobus
After upgrading to MacOS Ventura all PDF files have blank (white) icon. But in Finder icon is displaying normally.
Maybe some other file types have the same issue, but I noticed on PDFs.

How to fix it?
Thanks.
NC.png
NC.png (27.07 KiB) Viewed 11980 times
Finder.png
Finder.png (81.68 KiB) Viewed 11980 times

Re: Blank icon on PDF files

Posted: Sun Oct 30, 2022 12:06 am
by moonrak
I also have the same issue with pdf files, blank icon.
Carlos

Re: Blank icon on PDF files

Posted: Mon Oct 31, 2022 9:27 am
by Maxobus
moonrak wrote:
Sun Oct 30, 2022 12:06 am
I also have the same issue with pdf files, blank icon.
Do you have it also on MacOS Ventura?

Re: Blank icon on PDF files

Posted: Tue Nov 01, 2022 9:23 pm
by mike
Looks like a compatibility issue with Ventura. I'll update my Mac and check what's going on under the hood.

Re: Blank icon on PDF files

Posted: Wed Nov 02, 2022 4:11 am
by jhbarker
I have the same problem.

Re: Blank icon on PDF files

Posted: Fri Nov 04, 2022 1:00 am
by moonrak
Maxobus wrote:
Mon Oct 31, 2022 9:27 am
moonrak wrote:
Sun Oct 30, 2022 12:06 am
I also have the same issue with pdf files, blank icon.
Do you have it also on MacOS Ventura?
Yep, Ventura it is.
Carlos

Re: Blank icon on PDF files

Posted: Sun Nov 20, 2022 10:46 pm
by mike
Found the root cause for the issue.
This release adjusts the structure of UTIs (https://en.wikipedia.org/wiki/Uniform_Type_Identifier) - which one conforms to what.
NC has a configurable list of UTIs for which it renders file icons, that is:

Code: Select all

    "filePanel": {
        ...
        "presentation": {
            ...
            /**
             * A whitelist of UTIs used to determine whether an QuickLook icon is required for a
             * file. Requires restart to take effect.
             */
            "quickLookIconsWhitelist": "public.image, public.movie, public.audio",
That list can changed manually in ~/Library/ApplicationSupport/Nimble Commander/Config/Config.json.

Now the UTI of PDF files ("com.adobe.pdf") no longer conforms to these three core UTIs so NC didn't try to produce icons for this file extension.
Fixed now, next build will be behave properly.
In the meantime a "hotfix" would be to add e.g. "public.content" in this config entry.

Re: Blank icon on PDF files

Posted: Mon Nov 21, 2022 10:03 am
by Maxobus
Thanks.
Applied a hotfix. And now instead of PDF icon it renders content of pdf file as icon.
Is it possible to fix to show just pdf icon?

Re: Blank icon on PDF files

Posted: Sat Dec 03, 2022 5:57 pm
by mike
Hi all,

Well, I can finally report something back.

First of all - I completely mixed up the expected behaviour for these file types. For some reason I thought previously NC rendered an actual contents of PDF files, but in fact it just shown the proper icon. So please disregard what I wrote about UTI types previously.

It took quite some to investigate the issue.
To begin with, on my setup the PDF icon was properly rendered in NC no matter what, what's with macOS 13 running on both Arm64 and AMD64 (different machines).
Then I noticed Adobe Acrobat's icon in some screenshot(s) that demonstrate the issue.
So lo and behold - after installing Acrobat Reader and rebooting one of my Macs that machine stopped displaying proper icons, showing a blank one instead. Removing Acrobat Reader, cleaning its traces and rebooting didn't fix the issue - still get blank icons.
In the end I composed a tiny app with essentially one line of code that gets an icon for UTI "com.adobe.pdf" using the official Apple's API.
On two of my machines it display different results - a one that had Acrobat Reader installed shows a blank icon, while the machine that didn't have it shows a proper icon.

The app is attached and if you could run it on your machine and write back - that would be awesome.

It seems other software is affected by this issue as well, including Safari and Mail:
https://community.adobe.com/t5/acrobat- ... p/13327540
https://www.msofficeforums.com/outlook/ ... hment.html
https://discussions.apple.com/thread/254319653

So, by the current looks of it seems the problem is on the Adobe's side - unfortunately not much I can do here.

Re: Blank icon on PDF files

Posted: Sat Dec 03, 2022 6:35 pm
by moonrak
I'm getting a blank icon within the app you provided and also in NC for a pdf file.
Mac mini M1 with Ventura.
Carlos