How to disable thumbnail generation?

For privacy and security reasons I want to disable the generation of any thumbnails in the ~/.cache/thumbnails folder (using Ubuntu 14.04 LTS).

I already tried this (without success):

  1. In the Filemanager "Files" (Edit ► Preferences) in the "Preview"-Tab I switched "Show Thumbnails" to "Never". Result: Thumbails are not shown in the filemanager but still be generated in the ~/.cache/thumbnails/normal/ folder when I open some pictures with the "Image Viewer" = FAIL!

  2. I used the dconf-editor and set org ► gnome ► desktop ► thumbnail-cache ► maximum-age to 0 and maximum-size to 0. Result: The same as the 1. try = FAIL!

  3. In the dconfeditor I set the option org ► gnome ► desktop ► thumbnailers ► disable-all. Result: Thumbnails of viewed pictures still be generated = FAIL!

A little bit weird solution I found is to delete the ~/.cache/thumbnails folder and than link it to /dev/null to avoid thumbnails are written to the hard disk:

rm -r ~/.cache/thumbnails && ln -s /dev/null ~/.cache/thumbnails

I really can't believe that this is the only solution to really disable the thumbnail generation!


Thumbnails of specific file types can be disabled using dconf editor.

Install dconf editor:

Hit Alt+Ctrl+T and run the following command:

sudo apt-get install dconf-tools

Or search for "dconf-tools" in Software Center and install it from there.

How to disable thumbnails of specific file type?

Once installed, Hit super key (windows key) to open Unity dash and search for "dconf editor" and open it.

Navigate to org > gnome > desktop > thumbnailer

Paste the MIME type of PDF 'application/pdf' in the value field of disable key.

This will prevent Nautilus from generating thumbnails of PDF's in the future but old thumbnails will be there. To solve this you'll have to clear Nautilus thumbnail cache.

Open your home directory and Hit Ctrl+H to show the hidden files and folders. Open .thumbnails and delete all the files in it.

Restart your system or kill Nautilus for change to take effect.

To disable thumbnails for other file types, Add there MIME type in disable list as described above. Seprate multiple types with comma. like this:

['application/pdf','image/jpeg','video/mp4']

For complete list of MIME types visit iana.org.