Replace YOUR-USER-NAME by your user-name in the last line.
Save the file.
Click on "Activities" and search for "File Manager". It should appear.
Right click on the "File Manager" and select "Add to Favourites". It should be added to the dock.
Now if you right click on the newly added File Manager icon in the dock, you should see a "Open my Downloads folder" option which should work as expected.
Similarly you can add shortcuts to other locations by adding new Desktop Actions and adding the name of the action to the Actions= line. For more info see this.
Best Answer
Follow the steps below.
Create a
.desktop
file (saycustom-filemanager.desktop
) in~/.local/share/applications
. You can do this by running the following command in TerminalOpen the
.desktop
file using a text-editor, for example by runningAdd the following lines to the file:
Replace
YOUR-USER-NAME
by your user-name in the last line.Save the file.
Click on "Activities" and search for "File Manager". It should appear.
Right click on the "File Manager" and select "Add to Favourites". It should be added to the dock.
Now if you right click on the newly added File Manager icon in the dock, you should see a "Open my Downloads folder" option which should work as expected.
Similarly you can add shortcuts to other locations by adding new
Desktop Action
s and adding the name of the action to theActions=
line. For more info see this.