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?
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.
Create a launcher with the command
where
$path
is the folder path.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:Now when you double-click it, instead of
the file manager will open
so the parent directory will be
as you desire.
Note that the
URL
field is afile://
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:
How do I create an shortcut to a folder(not a symlink) in Ubuntu 18.04 like shortcuts in windows
Make link open target file, not file at link location
https://unix.stackexchange.com/questions/310618/is-it-possible-to-create-a-soft-link-on-my-desktop-which-opens-with-the-target-p