Ask Your Question
0

how to restore the trash

asked 2016-06-21 15:03:05 -0500

noammo gravatar image

hi, I installed Fedora a few days ago, and I noticed that the trash icon is missing..

(after the installation I remember that I saw the trash icon, but after a couple of hour it's disappeared, I not remember something "special" that I did that can delete it)

explain in gif

http://i.imgur.com/fnN7EhT.gif

I mean - It's still exists via the files, (files explorer) but not via the search.. (show in gif)

but if i delete a file, he immediately deleted permanently!

how can I restore the trash icon?

I'll be glad for any help :)

edit retag flag offensive close merge delete

Comments

I'm pretty sure I had a trash icon, but I may be wrong.. and I think that everything is good now, I don't know what i did, but I think that is ok now. Thanks for help.

noammo gravatar imagenoammo ( 2016-06-21 16:16:10 -0500 )edit
1

Which version of Fedora did you install? On two computers I checked, typing trash in the overview screen shows the Trash icon to open in nautilus. Where are you deleting the files from? Is it somewhere in your home directory, external drive, or somewhere else? If you right-click a file, do you see a "move to trash" option in the menu?

In a terminal try touch testfile.txt, then gvfs-trash testfile.txt and see what happens.

ssieb gravatar imagessieb ( 2016-06-21 16:45:48 -0500 )edit

ok, that strange - for this file for example - /Documents/testfile.txt I have "move to tarsh" in right-click, and gvfs-trash /Documents/test1file.txt works just fine, puts the file into the trash. but - for this file -/var/www/html/test1.php, in right-click instead of "move to trash", I have "delete permanently"..

And that's what i have in the Terminal:

[noam@localhost-localdomain html]$ gvfs-trash test1.php

Error trashing file: Unable to find or create trash directory

(if that matter, I have partition to the home ("/home") and partition to the root ("/"))

why it happening?

noammo gravatar imagenoammo ( 2016-06-21 21:13:27 -0500 )edit
1

Your trash folder is in the /home partition and you can't move a file there from a different partition.

ssieb gravatar imagessieb ( 2016-06-21 22:52:39 -0500 )edit

ohh That why.. Thanks!

And there is any way to make a trash folder for the /root partition? (like set path for custom trash folder, just for /root (for the partition or to "/" path (which does exactly the same thing)) So that if I try to delete file / folder inside the /root, so It's will be moved to a custom directory. (to one that actually exists)

noammo gravatar imagenoammo ( 2016-06-22 04:04:59 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-06-21 15:27:04 -0500

florian gravatar image

Your trash folder should be located in a .hidden directory: ~/.local/share/Trash/files (where ~ is your home dir, e.g. /home/noammo). So, you can use a terminal to get there (cd ~/.local/share/Trash/files) or use Nautilus to navigate there. In order to see hidden .files and .folders, press CTRL+h and they will show up.

Does Trash not show up as a symbol under Files? (nautilus) BTW: Gnome's search (tracker) does apparently not show the Trash. At least, on my system it doesn't show up as a result.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-06-21 15:03:05 -0500

Seen: 1,442 times

Last updated: Jun 21 '16