Hi.
My file system fetches the contents of the files from the network. The
files are downloaded on demand, so only on the first read the file is
transferred, then is cached for later. This is problematic with the
automatic previewing of the files, of course, since the QuickLook daemon
(I think) will try to read them all just when browsing a folder.
Does someone have any advice on how to improve this? Ideally I'll need
to:
1. Tell the system not to read any files for previews. 2. Give the
system previews for those files myself, since the server has those
generated in advance, so I can download those instead.
For the first part, the user can choose to uncheck the the "Show icon
preview" on Finder's preferences for that directory, but can it be done
from the application?
This is the only promising thing I've found in the archives:
https://groups.google.com/d/msg/osxfuse-group/ZHRwfys9f0U/GofGcSH-_z0J
There it's mentioned that there *were* some `.ql_thumbnails` and
`.ql_disablecache` files that used to work. I've searched the web with
different engines and neither seems to have *any* information about
those. Maybe the names have a typo?
From what I've researched, that Finder setting is stored in .DS_Store. I
was happyly blocking it through the "noappledouble" mount option, but I
could manually block the "._" files and leave the .DS_Store alive for
that setting, or fake its contents on the fly. Did anyone do something
like this?
For the second point I think it might be even more difficult if not
outright impossible. I could create a QuickLook plugin that overrides
the system ones, and use my server for the previews on my mount, falling
back to the default for the remaining files. On Windows, maybe one could
generate a fake Thumbs.db with the previews of the files, and expose it
through the file system.
I hope I'm not the only one with this issue, and maybe somebody can give
any advice. :-)
Thank you in advance.
Greetings.