I'm trying to stop Nautilus from creating thumbnails of PDF files. In another thread on 'Ubuntu forums' someone said to open gconf-editor and disable the PDF entry in the '/desktop/gnome/thumbnailers' directory. However the only entry in that DIR is disable all. Needless to say I don't want that.
How can I disable the thumbnails for a specific file type?
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 > thumbnailers
Paste the MIME type of PDF
'application/pdf'
in the value field of disable key, Like shown below.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
.thumbnails
and delete all the files in it. Edit for 19.10: Open.cache
and delete thethumbnails
folder.Restart your system or kill Nautilus (
alt+f2
;nautilus -q
) 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.
In order to stop showing thumbnails for any video file (because on my little HTPC it's causing high CPU usage):
First, clean the thumbnail cache:
Apply the mime type list:
Then, just in case:
I have got the mime type list from here.