Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Desktop Environments
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Desktop Environments
Support for your Ubuntu desktop. Including Gnome, KDE and XFCE.

 
Thread Tools Display Modes
Old December 9th, 2006   #1
dudds
5 Cups of Ubuntu
 
Join Date: Dec 2005
Beans: 22
Deleting Trash

Hi,

I'm using Gnome as me desktop environment and have deleted a lot of files recently, mainly mp3 files within Amarok. I have emptied my trash can so thought all files had been deleted from my system.

Then today I was exploring the filesystem and playing around with the DU command and found that the directory ~/.local/share/Trash/files was 3.5GB in size. When I listed the contents of this directory I noticed that they were all mp3 files that I had deleted from my collection.

I have two questions:
1. Can I manually delete these files without causing any harm to my sytem; and
2. Why were these files either not in the trash, or deleted when I emptied the trash.

Does it have anything to do with the fact I was using a KDE app (Amarok) within Gnome??

Thanks in advance.
dudds is offline   Reply With Quote
Old December 9th, 2006   #2
DWright
5 Cups of Ubuntu
 
Join Date: Nov 2006
Beans: 16
Re: Deleting Trash

mmmm? odd!
To answer your first question: Yes you can safely delete the folder and the files. (Either using the graphical interface, or dropping to a shell (terminal) and using rm -rf)

It should not be because you are using a KDE app. in a Gnome environment. It may be an obscure bug in Nautilus. I have noticed that if I use Nautilus to "delete" (read: move to "Trash Can") files from a USB thumb drive, the files are moved to the .trash folder on the USB thumb drive, but they do not appear in the desktop "Trash Can"
see: http://gnomesupport.org/forums/viewtopic.php?t=12051
DWright is offline   Reply With Quote
Old December 9th, 2006   #3
mannheim
Ubuntu Extra Shot
 
Join Date: Aug 2005
Beans: 378
Re: Deleting Trash

The gnome trash directory for a user's files is ~/.Trash but the KDE trash directory is ~/.local/share/Trash. So I think what happens is that Amorak moves the files to ~/.local/share/Trash when you delete items. When you "empty the trash" on the gnome desktop, you empty the directory ~/.Trash (which is not where Amorak put this files).
mannheim is offline   Reply With Quote
Old December 10th, 2006   #4
dudds
5 Cups of Ubuntu
 
Join Date: Dec 2005
Beans: 22
Re: Deleting Trash

Thanks Mannheim that makes sense.
dudds is offline   Reply With Quote
Old February 9th, 2007   #5
MCSE_Crossover
A Carafe of Ubuntu
 
MCSE_Crossover's Avatar
 
Join Date: Feb 2007
Location: Cocoa Beach, Florida
Beans: 133
Ubuntu 9.04 Jaunty Jackalope
Re: Deleting Trash

Quote:
Originally Posted by mannheim View Post
The gnome trash directory for a user's files is ~/.Trash but the KDE trash directory is ~/.local/share/Trash. So I think what happens is that Amorak moves the files to ~/.local/share/Trash when you delete items. When you "empty the trash" on the gnome desktop, you empty the directory ~/.Trash (which is not where Amorak put this files).
Is there a way to redirect this or fix this issue? I notice the same problem when using Digikam through Gnome...
__________________
There is no elevator to success. You'll have to take the stairs.

MCSE_Crossover
MCSE_Crossover is offline   Reply With Quote
Old February 9th, 2007   #6
gradedcheese
Has an Ubuntu Drip
 
Join Date: Aug 2005
Location: san francisco
My beans are hidden!
Ubuntu 8.10 Intrepid Ibex
Send a message via AIM to gradedcheese
Re: Deleting Trash

symlinks...

say you want to only have .Trash as the trash (which is what Gnome uses). But some application insists on .local/share/Trash for its Trash path. In a terminal:

1) remove the other Trash:

rm -rf ~/.local/share/Trash

2) replace that with a symlink to the real Trash:

ln -s ~/.Trash ~/.local/share/Trash
gradedcheese is offline   Reply With Quote
Old February 13th, 2007   #7
MCSE_Crossover
A Carafe of Ubuntu
 
MCSE_Crossover's Avatar
 
Join Date: Feb 2007
Location: Cocoa Beach, Florida
Beans: 133
Ubuntu 9.04 Jaunty Jackalope
Re: Deleting Trash

Excellent information! Good to know for us "newbies." Symbolic links are definately something that us "Microsoft crossovers" don't deal with too much, but obviously, are very important in the Linux realm.
__________________
There is no elevator to success. You'll have to take the stairs.

MCSE_Crossover
MCSE_Crossover is offline   Reply With Quote
Old February 14th, 2007   #8
ubunter1
Gee! These Aren't Roasted!
 
ubunter1's Avatar
 
Join Date: Oct 2006
Location: toronto,ontario,canada
Beans: 165
Ubuntu 7.10 Gutsy Gibbon
Re: Deleting Trash

i have trash in the trash icon but it will not delete after using the empty trash text on the right click menu,it deletes pictures mp3s and the like but i have copys of folders and libmtp leftovers from when i installed gnomad.is it safe to delete these?,and how?.thanks.
ubunter1 is offline   Reply With Quote
Old March 13th, 2008   #9
Kimos
Just Give Me the Beans!
 
Join Date: Oct 2006
Location: Canada
Beans: 54
Ubuntu 9.04 Jaunty Jackalope
Re: Deleting Trash

Quote:
Originally Posted by gradedcheese View Post
symlinks...

say you want to only have .Trash as the trash (which is what Gnome uses). But some application insists on .local/share/Trash for its Trash path. In a terminal:

1) remove the other Trash:

rm -rf ~/.local/share/Trash

2) replace that with a symlink to the real Trash:

ln -s ~/.Trash ~/.local/share/Trash
I was trying to figure out what was eating up so much space in my home folder. Ended up writing a script that output the size of hidden folders, which eventually led to this.

I use AmaroK, Ktorrent, and K3B under Gnome. All three of them moved large media files to that folder which never get erased.

Just wanted to thank you for the fix. The symlink did the job.
Kimos is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:56 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry