How to create a desktop shortcut in Unity?

148,277

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

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.

Solution 2

  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)

Solution 3

Navigate to your application in Nautilus.

Right-click, select "Make Link".

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

Share:
148,277

Related videos on Youtube

Jeff Bognar
Author by

Jeff Bognar

Updated on September 18, 2022

Comments

  • Jeff Bognar
    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
      J R over 12 years
      Which version was this?
    • david6
      david6 over 12 years
      Please identify which Ubuntu version.
    • david6
      david6 over 12 years
      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.
  • Anonymous
    Anonymous almost 12 years
    I love your desktop background!
  • jokerdino
    jokerdino almost 12 years
    @Anonymous Thanks, it is part of the Oneiric wallpaper set. You can download it too.
  • Jason Southwell
    Jason Southwell over 10 years
    It is completely unnecessary to be root to do this.
  • Neil Huang
    Neil Huang over 10 years
    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.
  • Paul Lammertsma
    Paul Lammertsma about 10 years
    I'm not sure why, but I needed to provide a .desktop extension in Ubuntu 12 LTS.
  • Jonathan
    Jonathan almost 8 years
    gnome-desktop-item-edit seems to no longer exist? (Ubuntu 16.04)
  • jokerdino
    jokerdino almost 8 years
    @JonathanLeaders that command is now provided by gnome-panel package. You need to install it to use it.
  • Jonathan
    Jonathan over 6 years
    I noticed you can .desktop files to /usr/share/applications for it to be available system-wide
  • Jesse Hogan
    Jesse Hogan over 5 years
    You can install gnome-desktop-item-edit by running sudo apt install gnome-panel
  • opinion_no9
    opinion_no9 almost 4 years
    creating a link on the Desktop does not work in Ubuntu 20.04 Unity / "Ubuntu".
  • TomS
    TomS about 2 years
    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.