 |
Help us to move faster and make a better system for you. Donations are highly appreciated.
Donations Sum: $ 400,00
|
|
Help us to fix problems and defects. Please report bugs here.
|
|
|  | Admin | | No Online Admins |
| | | |  | Online |  | Members: | 0 |  | Guests: | 35 |  | Total: | 35 |
| | | |  | Online Members | | No online members |
|
|
|
|  |
| Author |
Message |
|
|
Post subject: /home/thumbnails
Posted: Aug 13, 2008 - 07:01 PM
|
|
Forum Moderator

Joined: Jan 25, 2008
Posts: 209
Location: UK
|
|
| Can somebody explain why thumbnails are auto saved to this folder but not deleted upon shutdown?, I deleted 16,000+ thumbnails from this folder, this all has to load every time I startup. Sidux with gnome does the same and massive amount of thumbnails surely does not speed up file browsing! |
_________________ Parsix running AMD 6000 x2 64bt, Asus mother board 8gb ram, Nvidia graphic card 1gb unboard ram, Plextor PX760, EPSON R300, 2x 500gb sata+2x 500gb usb Hardrive, Netgear, 19" DELL monitor 1600X1200 X 75hz Resolution
|
| |
|
|
|
 |
cmost
|
|
Post subject: RE: /home/thumbnails
Posted: Aug 13, 2008 - 09:35 PM
|
|
Forum Moderator

Joined: Feb 19, 2008
Posts: 135
Location: Cincinnati, Ohio
Status: Offline
|
|
You could always create a little script that automatically deletes this directory and all of its contents and have it execute either before you shut down or (easier) when you log in. This way they're cleaned up on a regular basis. An example script might be made like this:
1. Create a new text file
2. Copy and paste the following (change "username" to your appropriate username):
#!/bin/bash
#cleanup the ./thumbnails directory in Gnome
rm -r /home/username/.thumbnails
3. Save the file as delete_thumbnails (no extension required.)
4. Right-click on the file, select properties and then the permissons tab. Tick the box next to 'allow executing file as program'
5. Click 'ok'
Now the fun part...
6. To make the file run every time you log in, simply go to 'System' --> 'preferences' --> 'Sessions'. Add a new entry and browse to the location of your script for the command. Close. Viola! (pun intended!)
Alternately, you can make the script run every time you shut down. This is a bit trickier but not too bad if you're careful.
One way is to copy the file (as root) into /etc/rc0.d with a name like "Snndelete_thumbnails" where "nn" is a number. This will cause it to run as the nn'th item when entering runlevel 0 (ie, shutdown).
While the above will work, it is a bit hackish. The correct way would be to drop the script into /etc/init.d/delete_thumbnails; then use
"sudo update-rc.d" to insert your script at the correct places:
$sudo update-rc.d delete_thumbnails start nn 0
(Again, where "nn" is the order you want to run your script. If you want it to run on BOTH shutdown and reboot (run levels 0 and 6
respectively) then append "6" to the upate-rc.d line above. Be careful about where you run your script (the "nn") as it may rely on services that get stopped during shutdown/reboot. In this case, I don't think it matters since you're just deleting a directory but for other scripts this may be important! Conversely, some script's changes may be over-written by a process after your script has run.
Let me know if this has helped! Good luck! |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 15, 2008 - 06:07 AM
|
|
Forum Moderator

Joined: Jan 25, 2008
Posts: 209
Location: UK
|
|
Cmost
I.m going the let the thumbnail folder build up a bit then do some testing at the moment I just delete the whole folder and it recreates it self empty upon reboot. I do a lot of photo work some 100gb so you can see the problem thousands of thumbnails being saved. |
_________________ Parsix running AMD 6000 x2 64bt, Asus mother board 8gb ram, Nvidia graphic card 1gb unboard ram, Plextor PX760, EPSON R300, 2x 500gb sata+2x 500gb usb Hardrive, Netgear, 19" DELL monitor 1600X1200 X 75hz Resolution
|
| |
|
|
|
 |
xet7
|
|
Post subject:
Posted: Aug 15, 2008 - 04:43 PM
|
|
Forum Moderator

Joined: Feb 20, 2008
Posts: 205
Location: Finland
Status: Offline
|
|
|
|
|
 |
|
|
|
|
|  |
|  |