Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 03-09-2013, 04:12 PM   #1
LQ Newbie
Registered: Jan 2013
Posts: 20

Rep: Reputation: Disabled
How to stop thumbnails being generated?

OS is Debian Squeeze, desktop is Gnome 2.

Is there a way to stop thumbnails from being created? ...

Background: The machine in question is in use as a media server (so has thousands of photos etc. stored) as well as a workstation. I back the machine up each night to an NTFS partition on an external hard drive. Unfortunately, even though I've elected to disable all thumbnailers in the Configuration Editor, I only have to browse a few folders of photos and several thousand thumbnails appear in ~/.thumbnails/normal and several hundred in ~/.thumbnails/fail/gnome-thumbnail-factory! This causes a problem because I have a set of backups (/media/usb0/backup; /media/usb0/backup2; /media/usb0/backup3;...). Before backing up, I use rm -fr to delete the oldest backup and then mv to rename the backups, thus 'shuffling' them along. However, rm can't delete all those thumbnails from the oldest backup, so the oldest backup isn't fully deleted, which makes things a little messy!

FWIW, I've got a workaround, which is to have my cron job delete all those thumbnails before starting the backup routine proper, but I'd rather find a way to stop Gnome, Nautilus, or whatever's doing it, from creating the thumbnails in the first place.

All help gratefully received.
Old 03-10-2013, 09:39 AM   #2
Philip Lacroix
Registered: Jun 2012
Distribution: Slackware{,-current}, OpenBSD
Posts: 340

Rep: Reputation: 295Reputation: 295Reputation: 295

this is not an elegant solution as it won't prevent thumbnails from being created, but you could redirect them to /tmp, replacing ~/.thumbnails/normal and ~/.thumbnails/fail/gnome-thumbnail-factory with symbolic links.

# rm -r ~/.thumbnails/normal
# ln -s -T /tmp ~/.thumbnails/normal
# rm -r ~/.thumbnails/fail/gnome-thumbnail-factory
# ln -s -T /tmp ~/.thumbnails/fail/gnome-thumbnail-factory
You could also exclude ~/.thumbnails from your backups.


Last edited by Philip Lacroix; 03-10-2013 at 10:57 AM.
Old 03-10-2013, 03:26 PM   #3
John VV
LQ Muse
Registered: Aug 2005
Posts: 16,255

Rep: Reputation: Disabled
in the gnome2 config tool
edit / preferences
click on the "preview" tab
select "never" for local and remote files
set the "only for files smaller than" to 0 kb
Old 03-14-2013, 03:05 PM   #4
LQ Newbie
Registered: Jan 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thanks for the help guys -- it's much appreciated.

FWIW, I'm uneasy about "dev-nulling" a folder as I've read somewhere that should only be done to a stream or a single file. Also, that doesn't prevent the thumbnailers from firing up, which is what I'd really like to achieve.

I guess that I've got a different Gnome Config app than John as I don't have the same options he describes. I suspect that each distro has it's own front end for a lot of stuff, and that this is one such case.

Thanks again,

Old 03-14-2013, 04:36 PM   #5
John VV
LQ Muse
Registered: Aug 2005
Posts: 16,255

Rep: Reputation: Disabled
you do not have the standard gnome2 Nautilus
upper left click "edit" in that menu preferences
see screen shot

Last edited by John VV; 04-12-2014 at 07:30 PM.
Old 03-15-2013, 12:54 AM   #6
LQ Newbie
Registered: Jan 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
Ah! I thought you meant Gnome Configuration Editor (gconf-editor, which on Debian you get to via Applications -> System Tools -> Configuration Editor) rather than Nautilus Options. Your earlier post now makes sense -- thanks.
Old 03-15-2013, 01:45 AM   #7
Registered: Feb 2013
Location: Berlin
Distribution: Gentoo, Debian
Posts: 172

Rep: Reputation: 25
I use the "link-to-tmpfs" solution, too. The thumbnail generation doesn't consume huge amounts of CPU power, and if i happen to re-visit the same image folder - plop, all thumbnails appear even faster. But when i'm done (shutdown/reboot), all thumbnails are gone, as it should be. I don't want that junk in my backups either. Also a privacy issue.


gnome, nautilus, thumbnail

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Are thumbnails saved somewhere? suChris Slackware 2 11-07-2010 08:26 PM
Nautilus Thumbnails tombelcher7 Ubuntu 2 10-19-2010 03:03 PM
Print thumbnails gonzojd7 Linux - Newbie 2 08-20-2008 07:38 PM
Deleting thumbnails from /root/thumbnails directory moxieman99 Linux - Newbie 3 10-19-2004 03:45 PM
Video Thumbnails prompt Linux - Software 1 04-01-2004 05:06 PM

All times are GMT -5. The time now is 07:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration