I am running Ubuntu V11.10 in Classic View.
I moved many photos from the Pictures base folder to one of the sub-folders I had created within the Pictures folder. After checking that they were there, I deleted them from the Pictures folder. Later I discovered that they had disappeared from the sub-folder (OK, so perhaps I screwed up!)
Now for the difficult bit.
Classic view has just the Applications and Places tabs at the top left of the screen. The Places link does not work, but that’s another thing I don’t want to trouble with at present. I can in any case reach all my files by clicking on the Files entry in one of the Application menu items, but I now notice that the Rubbish Bin is not shown! I’ve checked in the “Main” menu item that I haven’t removed it from the displayed options.
Restarting in Unity desktop does show the Rubbish Bin, but double clicking on it just opens the image viewer and I have to step through 400 photos to get to those I want to restore. The image right-click dialogue box does not have an option to return the file from whence it came – just a Save-As option. (As an aside: only picture files are listed, no documents.)
Right-clicking on the Rubbish Bin icon shows three labels:
“Rubbish Bin”
“460 items in the rubbish bin”
“Empty the rubbish bin”
Only the last one can be highlighted. I imagine that the second one ought to open a window displaying the deleted files.
Can I recover the Rubbish bin in Classic View, and can I get it working properly to restore a batch of files?
OK, we’ll get around to fixing things in a bit … but for now, hopefully you can access your “Trash” by opening the nautilus file manager:
nautilus
and in Nautilus, click:-
Go>Location
in the address bar enter:-
trash:///
Nautilus should now display the trash contents … right-click files and select “Restore” to, erm restore
If that doesn’t work …
Anything placed in the Trash will be located at
~/.local/share/Trash/files
along with a coresponding “.trashinfo” file (that contains the restore info) at
~/.local/share/Trash/info
So open a terminal (Ctrl+Alt+T) and run:
nautilus ~/.local/share/Trash/files
You can now copy and paste thoes files to wherever you want
Be aware, if you REMOVE anything from there, you’ll also want to delete its corresponding “.trashinfo” file … or you will break the Trash system … which MAY be the current problem … so What I’d do is move EVERYTHING you want from ~/.local/share/Trash/files … then once you’re SURE you have them elsewhere, delete EVERYTHING form both:-
~/.local/share/Trash/files
and
~/.local/share/Trash/info
BTW, you can DELETE something without sending it to the trash by highlighting it, then hitting Shift+Delete on the keyboard.
What a star!
Your first suggestion worked a treat - thank you so much.
Your second suggestion is something for me to experiment with but I can see I shall have to be careful!
The Shift+Delete trick I found in Help but it is far too dangerous for me to use
Thanks again, Mark.
You’re welcome … let us know if/when you want to attempt to fix the “Places” menu.
OK so now to fix the Places problem, if possible. As I mentioned, I can access everything from items in the Applications menu so if the solution is fraught with difficulties I don’t mind living with the problem.
I attach a file that shows the system’s responses to clicking on items in the “Places” menu. By and large, the first half of the list go off looking for only image files whilst the “service”-type entries appear to work.
Any ideas?
Hmm … it looks like “directories” have somehow become associated with “image viewer” rather than the “nautilus” file manager.
Can you open a terminal (Ctrl+Alt+T), and run these 2 commands:
cp -v ~/.local/share/applications/mimeapps.list ~/.local/share/applications/mimeapps.list.backup
(that’s backed up mimeapps.list just in case )
Then
gedit ~/.local/share/applications/mimeapps.list
ande post the contents of that file back here.
mimeapps.list attached.
Open a terminal and run:
gedit ~/.local/share/applications/mimeapps.list
Look for ANY lines that start with:-
inode/directory=
and comment them out, so they now start with:-
# inode/directory=
(be aware there may be more than 1 entry that starts with that, so be sure to comment out ALL lines that start that way)
SAVE the file … now test your “Places” menu … you may have to log off/on, or reboot.
OK, in reality, there’s only one line that’s causing the problem:-
[Default Applications] x-scheme-handler/mailto=thunderbird.desktop image/jpeg=eog.desktop application/vnd.ms-wpl=vlc.desktop inode/directory=nautilus-folder-handler.desktop application/xspf+xml=vlc.desktop text/html=vlc.desktop audio/x-scpls=libreoffice-writer.desktop text/plain=gedit.desktop audio/x-vorbis+ogg=vlc.desktop x-content/image-dcf=gthumb-import.desktop[Added Associations]
x-scheme-handler/mailto=userapp-Evolution-5O4P1V.desktop;thunderbird.desktop;
image/jpeg=eog.desktop;
application/vnd.ms-wpl=libreoffice-writer.desktop;nautilus-browser.desktop;firefox.desktop;banshee-audiocd.desktop;evince.desktop;gedit.desktop;vlc.desktop;
inode/directory=eog.desktop;vlc.desktop;
application/xspf+xml=vlc.desktop;
text/html=vlc.desktop;
audio/x-scpls=evince.desktop;nautilus-browser.desktop;libreoffice-writer.desktop;
text/plain=libreoffice-writer.desktop;gedit.desktop;
application/pdf=gthumb-import.desktop;libreoffice-writer.desktop;evince.desktop;
audio/x-vorbis+ogg=vlc.desktop;
application/octet-stream=gedit.desktop;
application/vnd.ms-works=libreoffice-writer.desktop;
x-content/image-dcf=gthumb-import.desktop;
So comment out that line, so it now reads:-
[Default Applications] x-scheme-handler/mailto=thunderbird.desktop image/jpeg=eog.desktop application/vnd.ms-wpl=vlc.desktop inode/directory=nautilus-folder-handler.desktop application/xspf+xml=vlc.desktop text/html=vlc.desktop audio/x-scpls=libreoffice-writer.desktop text/plain=gedit.desktop audio/x-vorbis+ogg=vlc.desktop x-content/image-dcf=gthumb-import.desktop[Added Associations]
x-scheme-handler/mailto=userapp-Evolution-5O4P1V.desktop;thunderbird.desktop;
image/jpeg=eog.desktop;
application/vnd.ms-wpl=libreoffice-writer.desktop;nautilus-browser.desktop;firefox.desktop;banshee-audiocd.desktop;evince.desktop;gedit.desktop;vlc.desktop;
# inode/directory=eog.desktop;vlc.desktop;
application/xspf+xml=vlc.desktop;
text/html=vlc.desktop;
audio/x-scpls=evince.desktop;nautilus-browser.desktop;libreoffice-writer.desktop;
text/plain=libreoffice-writer.desktop;gedit.desktop;
application/pdf=gthumb-import.desktop;libreoffice-writer.desktop;evince.desktop;
audio/x-vorbis+ogg=vlc.desktop;
application/octet-stream=gedit.desktop;
application/vnd.ms-works=libreoffice-writer.desktop;
x-content/image-dcf=gthumb-import.desktop;
But the instructions in my last posting should also work, as it should pick up the correct association from the master (system wide) mimeapps.list file
There were two:
inode/directory=nautilus-folder-handler.desktop in Default Applications
inode/directory=eog.desktop;vlc.desktop; in Added Associations
“Places” now works perfectly!
I commented out both before your last post - shall I re-instate the first one?
BTW can you explain what inode refers to?
You can if you wish … but if it’s working there’s no need … as I said if nothing is present, it will pick it up from the system wide association list @ /usr/share/applications/defaults.list
an inode (index node) is how the file type (and other file information) is stored:
http://en.wikipedia.org/wiki/Inode
is it now working ?
Windows relies on expensions … ssuch as .jpg .txt etc.
Linux doesn’t … it stores file information in the files inode … so you can have a JPEG called “picture.jpg” OR a file called “picture” … either way it will open in the right application because it doesn’t rely on the file expension … it gets the file type from the files inode.
HTH
It is working perfectly - thanks again for your help.
Although I now know where to find the Trash files, is it possible to have the Trash item displayed or available, say in Places?
Not that I know of … you CAN add a Trash icon to the desktop … but it’s already in your nautilus file manager @ Go>Trash
Isn’t it also displayed in the left hand panel of any Nautilus window ?
[EDIT]
I’ll see if I can find a way to add it to “Places” though if you wish ?
OK, it IS possible to add it to “Places>Bookmarks>Rubbish Bin”
Open nautilus:
nautilus
In Nautilus, click Go>Rubbish Bin
You should now be in the trash:/// directory … once you are sure you’re in trash …
Hit Ctrl+D
You should now have a “Rubbish Bin” icon in the left panel of Nautilus … it will also be @ Places>Bookmarks>Rubbish Bin
I now have Rubbish Bin in the Places menu list though not in the left panel of Nautilus.
But that’s fine for me and it works, too.
Very many thanks for your help, Mark.
Odd, it should have listed itself under “Bookmarks” in the left panel of Nautilus ???
Anyway … if you now consider this topic (SOLVED), can you please mark it that way by editing the FIRST posting in this topic and changing:-
Subject: Lost Rubbish Bin in Classic View…etc
to
Subject: Lost Rubbish Bin in Classic View…etc (SOLVED)
Thanks in advance
[EDIT]
Ooops … you already had, and I just hadn’t refreshed my browser … Thanks
If you mean that there ought to be a menu item in the left panel called Bookmarks, then there isn’t one, but perhaps that menu list is itself known as bookmarks?
I’m going to guess youhave Nautilus set to “Tree” view, rather than “Places” view ?
Open any Nautilus window, then go to View>Sidebar>Places
Does the left hand panel now have Bookmarks and Rubbish Bin ?
and/or
Computer>Rubbish Bin ?
Oh! How stupid of me! You are quite correct - it seems that I haven’t explored the menus in enough detail.
I am sorry to have troubled you on that one, but getting Places working again has been a very useful learning experience.
My thanks once more.