How to create a desktop shortcut in Unity?
Solution 1
For Unity
You can search for the application you like to create a desktop shortcut for in the dash and drag it to the desktop. It is best done when your dash is not fully maximized and there are no maximized windows in the background as well.
For Unity-2D
Currently, you can't drag and drop from the dash to create a desktop shortcut. A bug report has been filed regarding this behaviour.
However, you can use gnome-desktop-item-edit
to create a new desktop shortcut.
Enter the following command in a terminal:
gnome-desktop-item-edit Desktop --create-new
You will then get the above pop up. Enter the command and other particulars of the application that you are trying to create a desktop shortcut for.
Solution 2
Bring up the terminal;
type:
nautilus /usr/share/applications
(from the terminal, this brings up a file explorer, with the initial location at the stated path)Right-click on an existing Icon and and go to 'Properties'
You are looking for a Type: desktop configuration file (application/x-desktop)
when you find one you like; Right-click that file, copy, and then paste it wherever you like (such as to your desktop)
rename and edit it accordingly.
(common errors occur when; not using lowercase letters, not putting the proper parameters in the command line)
Solution 3
Navigate to your application in Nautilus.
Right-click, select "Make Link".
Then drag shortcut to your desktop. Works in current 12.04.
Related videos on Youtube
Jeff Bognar
Updated on September 18, 2022Comments
-
Jeff Bognar over 1 year
Is there an easy way to create a desktop shortcut for an application in Unity? The ability to right click or drag and drop icons to the desktop in Unity does not seem to be there.
-
J R over 12 yearsWhich version was this?
-
david6 over 12 yearsPlease identify which Ubuntu version.
-
david6 over 12 yearsNote: Unity does not use desktop icons, in favor of the launcher (icon bar). You are able to drag icons to the launcher, from within Dash.
-
-
Anonymous almost 12 yearsI love your desktop background!
-
jokerdino almost 12 years@Anonymous Thanks, it is part of the Oneiric wallpaper set. You can download it too.
-
Jason Southwell over 10 yearsIt is completely unnecessary to be root to do this.
-
Neil Huang over 10 yearsI just wanted to add to the Unity 2D solution. It is a great solution, and works even if you're using regular Unity. What I like to do, is that once I've created the Launcher using the gnome-desktop-item-edit command, I move the created command to a sub-folder under my home directory. Once I've done that, then I drag the moved launcher to the Unity dock. That way, the launcher will not constantly stay on my desktop.
-
Paul Lammertsma about 10 yearsI'm not sure why, but I needed to provide a
.desktop
extension in Ubuntu 12 LTS. -
Jonathan almost 8 years
gnome-desktop-item-edit
seems to no longer exist? (Ubuntu 16.04) -
jokerdino almost 8 years@JonathanLeaders that command is now provided by
gnome-panel
package. You need to install it to use it. -
Jonathan over 6 yearsI noticed you can
.desktop
files to /usr/share/applications for it to be available system-wide -
Jesse Hogan over 5 yearsYou can install
gnome-desktop-item-edit
by runningsudo apt install gnome-panel
-
opinion_no9 almost 4 yearscreating a link on the Desktop does not work in Ubuntu 20.04 Unity / "Ubuntu".
-
TomS about 2 yearsFor me, it didn't work by manually creating the .desktop file. I made the mistake that I named the section
[Desktop Entry]
as[Desktop entry]
(with a lower-case e) which rendered my file unusable. So, either you really copy a template file from the /usr/share/applications directory or you create it by your own and then have it checked usingdesktop-file-validate
which immediately showed me the error.