Software & AppsOperating SystemLinux

How To Create a Desktop Shortcut in Unity

Ubuntu 16

Creating desktop shortcuts can be a significant time-saver, especially for frequently used applications. In Ubuntu’s Unity interface, there are several ways to create these shortcuts. This guide will walk you through the process, step by step.

Quick Answer

To create a desktop shortcut in Unity, simply open the Dash, search for the application you want, and drag it to the desktop. In Unity-2D, you can use the gnome-desktop-item-edit command in the terminal to create a new shortcut. Another method involves using Nautilus to navigate to the /usr/share/applications directory and copy an existing desktop configuration file.

Unity Interface

In the Unity interface, creating a desktop shortcut is relatively straightforward. Here’s how to do it:

  1. Open the Dash: Click on the Ubuntu icon in the top left corner of your screen or press the super key (Windows key) on your keyboard.
  2. Search for the Application: Type the name of the application you want to create a shortcut for in the search bar.
  3. Drag and Drop: Click and hold the application icon, then drag it to the desktop. Release the mouse button to drop the icon, creating a shortcut.

Note: Ensure that the Dash is not fully maximized and there are no maximized windows in the background, as this may prevent you from dragging the icon to the desktop.

Unity-2D Interface

In Unity-2D, the process is slightly different as drag-and-drop from the Dash is not supported. However, you can use the gnome-desktop-item-edit command to create a new desktop shortcut.

  1. Open Terminal: Press Ctrl+Alt+T to open a terminal window.
  2. Enter the Command: Type the following command: gnome-desktop-item-edit Desktop --create-new. Press Enter.

This command will open a new window where you can enter details for the application. The gnome-desktop-item-edit command is used to edit .desktop files, which are used by the GNOME desktop environment to launch applications. The Desktop parameter specifies the location where the shortcut will be created, and --create-new instructs the command to create a new .desktop file.

Alternative Method: Using Nautilus

Another method for creating a desktop shortcut involves using the Nautilus file manager to navigate to the /usr/share/applications directory.

  1. Open Terminal: Press Ctrl+Alt+T to open a terminal window.
  2. Enter the Command: Type nautilus /usr/share/applications and press Enter.
  3. Select an Application: Right-click on an existing icon and select “Properties”.
  4. Copy and Paste: Once you find a suitable file (look for a Type: desktop configuration file or application/x-desktop), copy it and paste it wherever you want, such as your desktop.
  5. Customize: Rename and edit the file according to your preferences.

Conclusion

Creating desktop shortcuts in Unity or Unity-2D is a simple process that can make your Ubuntu experience more efficient. Whether you prefer the drag-and-drop method, using terminal commands, or navigating through Nautilus, there’s a method that will work for you. Remember to always use lowercase letters and provide the proper parameters when using terminal commands. Happy computing!

For more information on Unity and Ubuntu, visit the official Ubuntu documentation.

Can I create a desktop shortcut for any application in Unity?

Yes, you can create a desktop shortcut for any application in Unity by following the steps mentioned in the guide. Simply search for the application in the Dash and drag it to the desktop to create a shortcut.

Can I create a desktop shortcut in Unity-2D using the drag-and-drop method?

No, the drag-and-drop method is not supported in Unity-2D. However, you can use the gnome-desktop-item-edit command in the terminal to create a new desktop shortcut, as explained in the guide.

What is the purpose of the `gnome-desktop-item-edit` command?

The gnome-desktop-item-edit command is used to edit .desktop files, which are used by the GNOME desktop environment to launch applications. By using this command with the appropriate parameters, you can create a new desktop shortcut in Unity-2D.

Can I customize the properties of a desktop shortcut created using Nautilus?

Yes, you can customize the properties of a desktop shortcut created using Nautilus. Once you have copied and pasted the .desktop file to your desired location, you can right-click on it, select "Properties," and make changes to the name, icon, command, and other properties.

Are there any restrictions on the characters or naming conventions for desktop shortcuts?

Yes, when creating desktop shortcuts, it is recommended to use lowercase letters and avoid special characters or spaces in the file name. Stick to alphanumeric characters and underscores for best compatibility and to avoid any potential issues.

Leave a Comment

Your email address will not be published. Required fields are marked *