Ubuntu – View the folder of a selected file in the dash

nautilusunity-dash

When browsing files in the dash and I click a file it opens the file. Is it possible to instead choose to view the folder of the file in Nautilus? If, how?

Here's an example to clarify. I want to rename a file that I worked on yesterday. I open the dash and view earlier files. There I find the file but the only possible choice seems to be to open the file. What I would like to is to view the folder of the file in Nautilus so that I may rename it via Nautilus.

Best Answer

It is intended that dragging the file over the launcher & dropping onto the 'Home Folder' icon, which should be highlighted, will open a nautilus window at the folder where the file is located

At the moment in 11.10, when doing this nautilus may only open a Home folder window instead, no matter where the file is.

If this is the case then it can be corrected by changing the Exec= line in nautilus-home.desktop to look like this (adding a %U, note there is a space after nautilus

Exec=nautilus %U

You can simply edit the existing nautilus-home.desktop in /usr/share/applications

gksudo gedit /usr/share/applications/nautilus-home.desktop

Or of you have a custom nautilus-home.desktop then edit the Exec= in the top section, no need to add %U to any of the quicklist entries

A few usage notes -

The Dash remains open after dropping the file. To raise nautilus click on the Home Folder icon. You can open multiple files by switching back & forth if desired