I open my Documents folder more often than my Home folder. In Unity, if I want to open Documents, I click on the File manager icon in the launcher (this opens Home), then I click on Documents in the Nautilus bookmarks. I would prefer to just left-click once on that icon and have Documents open directly.
I am not able to drag folders into the launcher (is this a bug?) to create shortcuts there. (or is there another way to do it?)
I am not interested in right-clicking the icon (I know it is possible to add bookmarks in the right-click menu, but I just want to single-click that icon).
So what can I do?
Have a look at the answer to How to add my favorite places as a quicklist in my home's icon in Unity?
You can change the first Exec line to read
Exec=nautilus Documents
and it will open your Documents folder.You can remove this home icon by dragging it to the bin at the bottom. You can then right click on the desktop and click 'Create Launcher...'.
Set the Type to 'Application' using the dropdown menu. Set the name to 'Documents' and the command to
xdg-open /home/YOURNAME/Documents
.You can click the icon in the top left hand corner to change it to the home icon or any other icon if you wish. The home icon should be in the places/SIZE/folder-home.svg or places/SIZE/folder-home.png in the icon theme.
Click OK to create the launcher on the desktop.
You should then be able to drag and drop this to the launcher.
The accepted answer was basically still the correct answer for 12.04/12.10 & 13.04 (though some things about quicklists have changed in 12.10 & upcoming 13.04 but Not important here.
To set locally per user: Below is one single command in a terminal, copy & paste all, then press enter
Edit the
Exec=nautilus %U
toExec=nautilus Documents %U
In the launcher quicklists
Home
will now also open Documents,`Open a New Window
will open your Home folder.If you wish the launcher icon to say
Documents
instead ofHome Folder
then edit theName=Home Folder
line toName=Documents
, - (though I use something else here that makes more sense for both the launcher & unity panel -File Manager
If wanting
Open a New Window
to also open Documents then in the[Desktop Action Window]
section edit it toExec=nautilus Documents
Save & log out/in
If at any time wanting to re-edit the desktop then just run in a terminal -
If for some reason wanting to do this globally then make the same edits to
/usr/share/applications/nautilus-home.desktop
with a root text editorSave this as documents.desktop open nautilus (the file manager) navigate to /usr/share/applications Look for the file named "Documents Folder" and drag and drop onto your side panel... works like you'd want (sorry about the weird spacing below..... )
Two ways I know:
Method 1:
Step 1:
Step 2:
Change the
Name=
line to:Change the
Exec=
line to:Step 3
Save the file as:
A Document shortcut will appear and can be dragged and dropped where you want it to be. The other you are replacing may be removed/deleted as well.
Method 2
Step 1:
Enter this command:
Step 2:
Change the values of the
Type
,Name
,Command
, andComment
fields so the lines say:Step 3: Choose Icon
In the
Command
field, if it's clear, and you correctly type nautilus, it will complete your icon. If you want to choose another icon, such as your Documents icon, click the icon and you will be directed to an icon collection where you can choose the appropriate icon.I think this What Custom Launchers and Unity Quicklists are available?
is what you're looking for.