56

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.

3
  • Which version was this?
    – chrisjlee
    Jan 24, 2012 at 3:10
  • Please identify which Ubuntu version.
    – david6
    Jan 28, 2012 at 22:41
  • 1
    Note: 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.
    – david6
    Jan 28, 2012 at 22:53

4 Answers 4

50

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

enter image description here

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.

9
  • 5
    I love your desktop background!
    – Anonymous
    May 29, 2012 at 9:32
  • 4
    @Anonymous Thanks, it is part of the Oneiric wallpaper set. You can download it too.
    – jokerdino
    May 29, 2012 at 11:40
  • 1
    I 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.
    – Neil Huang
    Dec 5, 2013 at 6:34
  • I'm not sure why, but I needed to provide a .desktop extension in Ubuntu 12 LTS. Feb 4, 2014 at 13:44
  • 2
    @JonathanLeaders that command is now provided by gnome-panel package. You need to install it to use it.
    – jokerdino
    Jun 10, 2016 at 18:45
14
  1. Bring up the terminal;

  2. type: nautilus /usr/share/applications (from the terminal, this brings up a file explorer, with the initial location at the stated path)

  3. Right-click on an existing Icon and and go to 'Properties'

  4. You are looking for a Type: desktop configuration file (application/x-desktop)

  5. when you find one you like; Right-click that file, copy, and then paste it wherever you like (such as to your desktop)

  6. rename and edit it accordingly.
    (common errors occur when; not using lowercase letters, not putting the proper parameters in the command line)

2
  • 1
    It is completely unnecessary to be root to do this.
    – RolandiXor
    Sep 4, 2013 at 1:24
  • For 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 using desktop-file-validate which immediately showed me the error.
    – TomS
    Mar 15, 2022 at 7:44
2

Navigate to your application in Nautilus.

Right-click, select "Make Link".

Then drag shortcut to your desktop. Works in current 12.04.

1
  • creating a link on the Desktop does not work in Ubuntu 20.04 Unity / "Ubuntu". May 23, 2020 at 23:06
0

IMO the simplest is to logout, login in the classic mode, create/copy shortcuts and then return to unity (or maybe not:-).

At the same time you can fill up some other launcher, for example Docky, with your "favourite shortcuts" as you do not have the favourites option in the unity launcher.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .