11

I have dragged a folder from a Nautilus window to the desktop, holding Ctrl+Shift to create a shortcut (well, a symbolic link). However, when I open it from the desktop, instead of showing /home/scott/Documents/asd/folder it shows /home/scott/Desktop/folder. But sometimes I want to go up a level or two, and can only go to Desktop, not asd.

I understand that's how symbolic links work, but is there a way to create a shortcut to the target folder directly?

muru
  • 197,895
  • 55
  • 485
  • 740

3 Answers3

6

Right-click on Desktop (or in any folder in Nautilus), Create Launcher, set Type to Location, set the name type and type in the location (annoyingly if you click Browse it will only accept a file), click OK.

Jonathon
  • 2,481
2

One of the simplest ways to accomplish this is with a Link-type desktop file. In your case, create a text file in ~/Desktop called e.g. folder.desktop with these contents:

[Desktop Entry]
Name=Link to folder
Type=Link
URL=file:///home/scott/Documents/asd/folder/
Icon=folder

Now when you double-click it, instead of

/home/scott/Desktop/folder/

the file manager will open

/home/scott/Documents/asd/folder/

so the parent directory will be

/home/scott/Documents/asd/

as you desire.

Note that the URL field is a file:// URL, so unlike symbolic links only absolute paths will work. If you find it troublesome to generate the desktop files by hand, some file managers have this feature built-in.

Related:

Nathaniel M. Beaver
  • 1,518
  • 12
  • 33
2

Create a launcher with the command

nautilus "$path"

where $path is the folder path.

wjandrea
  • 14,236
  • 4
  • 48
  • 98