ObjectiveThe objective is to show how to create desktop shortcut launcher on Ubuntu 18.04 Bionic Beaver using the default GNOME user interface.
Operating System and Software Versions
- Operating System: - Ubuntu 18.04 Bionic Beaver
- Software: - GNOME Shell 3.26.2 or higher
RequirementsPrivileged access to your Ubuntu System as root or via
sudocommand will be required to install new software.
- # - requires given linux commands to be executed with root privileges either directly as a root user or by use of
- $ - requires given linux commands to be executed as a regular non-privileged user
Other Versions of this TutorialUbuntu 20.04 (Focal Fossa)
InstructionsIn this tutorial we will be creating an example desktop shortcut launcher for Skype application installed on Ubuntu 18.04. First, this guide will show you how to create the desktop shortcut launcher manually while the later example will use application
gnome-desktop-item-editcommand to simplify the desktop shortcut launcher creating process.
PreparationBefore 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/256x256/apps/skypeforlinux.png
- Application name: Skype
- Path to executable binary: /snap/bin/skype
$ which skype /snap/bin/skypeIn 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 shortcut launcher manuallyNow that we have all the necessary information, create a new file
~/Desktopdirectory and paste the following lines as part of the file's content. Change the code where necessary to fit your application specific details.
$ gedit ~/Desktop/Skype.desktop
#!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=false Exec=/snap/bin/skype Name=Skype Comment=Skype Icon=/snap/skype/23/usr/share/icons/hicolor/256x256/apps/skypeforlinux.png
The UAF Geophysical Institute, is looking for an experienced Linux Systems Analyst to join their team of research cyber infrastructure analysts and engineers. LOCATION: Fairbanks, Alaska, USA
Desktop Shortcut creation with gnome-desktop-item-editThe
gnome-desktop-item-editcommand 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-get install --no-install-recommends gnome-panelTo create a new desktop shortcut launcher on Ubuntu 18.04 execute the following linux command:
$ gnome-desktop-item-edit ~/Desktop/ --create-new