Local files are the files actually on your discs.
Nautilus can also show files from filesystems available through the GVFS system. This includes (but is probably not limited to):
Those are all not local files since the files them self reside on someone else's system.
Changing if preview should be shown for specific files is done on an extension or mine type based method through the command gsettings.
disable all thumbnails
gsettings set org.gnome.desktop.thumbnailers disable-all true
Disable PDFs
gsettings set org.gnome.desktop.thumbnailers disable "['application/pdf']"
(in early versions of Ubuntu when gsettings was introduced Nautilus did not abide these though). The manual method of turning thumbnails off would then be rm -r ~/.thumbnails && ln -s /dev/null .thumbnails
Just in case you are interested (but side stepping the answer): there is someone that made Gloobus Preview and it seems to have a bit more options.
Gloobus preview is an quick file previewer which supports many formats and preview them instantly. Currently it works better with nautilus and also with marlin file browser but many people don't use other file manager except nautilus.
It uses (/can use) gnome-sushi for thumbnails and this seems to generate them quicker than the how Nautilus does. Gnome-sushi seems to be installable seperate too (see the link).
(I did not test either of these programs though)
Here's the documentation on how to add a new thumbnailer.
You need to add two keys on gconf:
- /desktop/gnome/thumbnailers/application@x-foo/enable (boolean)
- /desktop/gnome/thumbnailers/application@x-foo/command (string)
Where application@x-foo
is the MimeType for the kind of file you want to generate the thumbnails. Set enable
to True and command
to the command to create the thumbnail.
To add one with gconftool-2:
gconftool-2 --set /desktop/gnome/thumbnailers/application@x-foo/enable --type bool true
gconftool-2 --set /desktop/gnome/thumbnailers/application@x-foo/command --type string "application-x-foo-thumbnailer %i %o %s"
The folders are created automatically. %i
is the input file, %o
where to write the output file (png) and %s
the size of the thumbnail.
And here's how to add a MimeType for custom files.
I found another way which seems easier, you can create a file in /usr/share/thumbnailers/
for example foo.thumbnailer:
[Thumbnailer Entry]
TryExec=/usr/bin/application-x-foo-thumbnailer
Exec=/usr/bin/application-x-foo-thumbnailer %i %o %s
MimeType=application/x-foo;
You can separate several MimeTypes with ;
.
Best Answer
The thumbnailing programs are installed separately except for text/plain and are specified in gconf here:
This system allows you install different programs to do the rendering of different kinds of images. My system doesn't have any html preview/thumnails and gconf reflects that. So I wonder what gnome packages you have installed that provide that functionality.