Create desktop shortcut in Ubuntu 18.04 and 16.04

Profile picture for user devraj

While creating Desktop shortcut in Ubuntu 18.04 and 16.04, You can give name, icon and location where you launch file is.

To create shortcut in Ubuntu 18.04 and 16.04, you require gnome-panel package.

You can install gnome package using below command if not installed already:

sudo apt-get install --no-install-recommends gnome-panel

After installation is done, type below command

gnome-desktop-item-edit ~/Desktop/ --create-new

A Popup will appear which is attached in image, Give following details

Name: Name of your shortcut

Location: Where your launch file is

Icon: Click on image on top left corner. You can also do it by clicking on arrow on the desktop icon and choose the icon you like.