LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 03-09-2013, 05:12 PM   #1
Geoff_L
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, 10:39 AM   #2
Philip Lacroix
Member
 
Registered: Jun 2012
Distribution: Slackware{,-current}
Posts: 215

Rep: Reputation: 127Reputation: 127
Hi,

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.

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

Philip

Last edited by Philip Lacroix; 03-10-2013 at 11:57 AM.
 
Old 03-10-2013, 04:26 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 13,524

Rep: Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806
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, 04:05 PM   #4
Geoff_L
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,

Geoff
 
Old 03-14-2013, 05:36 PM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 13,524

Rep: Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806Reputation: 1806
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 08:30 PM.
 
Old 03-15-2013, 01:54 AM   #6
Geoff_L
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, 02:45 AM   #7
bloody
Member
 
Registered: Feb 2013
Location: Berlin
Distribution: Gentoo, Debian
Posts: 158

Rep: Reputation: 23
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.
 
  


Reply

Tags
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 09:26 PM
Nautilus Thumbnails tombelcher7 Ubuntu 2 10-19-2010 04:03 PM
Print thumbnails gonzojd7 Linux - Newbie 2 08-20-2008 08:38 PM
Deleting thumbnails from /root/thumbnails directory moxieman99 Linux - Newbie 3 10-19-2004 04:45 PM
Video Thumbnails prompt Linux - Software 1 04-01-2004 06:06 PM


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

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