On March 3, 2020 at 10:02 AM, FZiegler <[email protected]> wrote:


On Mar 3, 2020, at 11:26 AM, Adam R. Maxwell via Bibdesk-users 
<[email protected]> wrote:


Francois, do you have "Show icon preview" turned on in Finder's view options? I 
wonder if there's a Quick Look plugin running to generate previews. That doesn't make 
sense with the sample, which shows it wasting a lot of time in a type lookup (recursive, 
maybe?). It might be interesting to run mdls in Terminal on a .djvu file and see what the 
type tree looks like.

Yes, I turn on Show icon preview. Below is mdls on a .djvu, with proviso that I 
gave the MacBook away for hardware tests and am on an new (identically 
organized) Mac mini running Mojave.

kMDItemContentType = "com.lizardtech.djvu"
kMDItemContentTypeTree = (
"public.content",
"public.item",
"public.data",
"public.composite-content",
"com.lizardtech.djvu",
"org.djvuzone.djvulibre.djvu"
)


Huh. I speculate that 32 vs 64 is a red herring, but it may be taking a 
different code path if you're linking against a different SDK. Either way, this 
is an interesting content type tree. You might use lsregister with -dump to see 
what LS thinks a .djvu file is; I wonder if you have competing UTI definitions 
for it, and that's confusing the type system?


Apple's Launch Services database is like the Windows Registry, except that it's 
undocumented, more fragile, harder to inspect, and not editable by the user :(.

 
-- adam

_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to