Author Topic: [SOLVED] Lost Rubbish Bin in Classic View...etc  (Read 1790 times)

0 Members and 1 Guest are viewing this topic.

Offline Keith

  • Hero Member
  • *****
  • Posts: 553
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
[SOLVED] Lost Rubbish Bin in Classic View...etc
« on: October 05, 2012, 09:13:50 pm »
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?
« Last Edit: October 06, 2012, 06:18:19 pm by Keith »

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14442
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #1 on: October 05, 2012, 09:55:15 pm »
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:
Code: [Select]
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:
Code: [Select]
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.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Keith

  • Hero Member
  • *****
  • Posts: 553
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #2 on: October 05, 2012, 10:21:08 pm »
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.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14442
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #3 on: October 05, 2012, 10:43:14 pm »
You're welcome :) .. let us know if/when you want to attempt to fix the "Places" menu.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Keith

  • Hero Member
  • *****
  • Posts: 553
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #4 on: October 06, 2012, 04:29:21 pm »
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?

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14442
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #5 on: October 06, 2012, 04:42:48 pm »
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:
Code: [Select]
cp -v ~/.local/share/applications/mimeapps.list ~/.local/share/applications/mimeapps.list.backup
(that's backed up mimeapps.list just in case ;) )

Then
Code: [Select]
gedit ~/.local/share/applications/mimeapps.list

ande post the contents of that file back here.
« Last Edit: October 06, 2012, 05:03:57 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Keith

  • Hero Member
  • *****
  • Posts: 553
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #6 on: October 06, 2012, 05:01:33 pm »
mimeapps.list attached.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14442
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #7 on: October 06, 2012, 05:04:27 pm »
Open a terminal and run:
Code: [Select]
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.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14442
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #8 on: October 06, 2012, 05:18:06 pm »
OK, in reality, there's only one line that's causing the problem:-

Quote
[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:-

Quote
[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 :)
« Last Edit: October 06, 2012, 05:19:51 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Keith

  • Hero Member
  • *****
  • Posts: 553
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #9 on: October 06, 2012, 05:19:51 pm »
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?

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14442
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #10 on: October 06, 2012, 05:23:44 pm »
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
« Last Edit: October 06, 2012, 05:34:10 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Keith

  • Hero Member
  • *****
  • Posts: 553
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #11 on: October 06, 2012, 05:31:33 pm »
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?

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14442
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #12 on: October 06, 2012, 05:42:49 pm »
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 ?
« Last Edit: October 06, 2012, 05:50:11 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14442
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #13 on: October 06, 2012, 06:04:28 pm »
OK, it IS possible to add it to "Places>Bookmarks>Rubbish Bin"

Open nautilus:
Code: [Select]
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
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Keith

  • Hero Member
  • *****
  • Posts: 553
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Lost Rubbish Bin in Classic View...etc
« Reply #14 on: October 06, 2012, 06:17:44 pm »
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. 

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal