How to create desktop shortcut launcher on Ubuntu 18.10 Cosmic Cuttlefish Linux

Objective

The objective is to show how to create desktop shortcut launcher on Ubuntu 18.10 Bionic Beaver Desktop using the default GNOME user interface.

Operating System and Software Versions

  • Operating System: – Ubuntu 18.10 Cosmic Cuttlefish
  • Software: – GNOME Shell 3.30.1

Requirements

Privileged access to your Ubuntu 18.10 Cosmic Cuttlefish System as root or via sudo command will be required to install new software.

Difficulty

EASY

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Instructions

In this tutorial we will be creating an example desktop shortcut launcher for a previously installed Skype application.



Preparation

Before we can begin you will need the following information for any given application you wish to create shortcut for:

  • Path Application Icon: /snap/skype/23/usr/share/icons/hicolor/256×256/apps/skypeforlinux.png
  • Application name: Skype
  • Path to executable binary: /snap/bin/skype

To obtain a full path to executable binary of any program use which command eg.:

$ which skype
/snap/bin/skype

In regards to the application icon, the choice is yours. You can either head over to /usr/share/icons/hicolor/ directory and search for any relevant icon to use, or simply download new icon from the web.



Create Desktop Launcher

The gnome-desktop-item-edit command may be missing as it is not installed by default. You can install it by opening up terminal and entering the following linux command:

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

To create a new desktop shortcut launcher on Ubuntu 18.10 execute the following linux command:

$ gnome-desktop-item-edit ~/Desktop/ --create-new
Create Desktop Launcher Dialog

Create Desktop Launcher Dialog

creating launcher shortcut on Ubuntu 18.10

Enter name, path to the application binary executable and optional comment. When ready, click on OK

New desktop shortcut has now been created.

New desktop shortcut has now been created.



trust and launch shortcut application

Double-click on the the new shortcut and select Trust and Launch

Start application via desktop launcher shortcut

Start application via desktop launcher shortcut

Set shortcut launcher icon

Optionally, set icon by right-click on the new desktop shortcut, selecting Properties. Next, click on the shortcut icon and choose path desired icon.