• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Create desktop launcher in Unity Desktop Ubuntu 16.04 LTS

February 10, 2017 by Sharad Chhetri

This post will explain about how to create desktop launcher in Unity Desktop and also access same launcher from Dash Home. Here we are using the Ubuntu 16.04 LTS Desktop edition. Many people wants to keep the Desktop launcher/Desktop shortcuts so that they can readily access applications by just clicking on its Desktop icons.

Before doing practical let us tell you that there are many ways to achieve this. To make the life easier we are only bringing two simple methods for creating the desktop launcher.

Create Desktop Launcher through GUI

This section is for readers who like the GUI way. Abbreviation of GUI is “Graphical User Interface”.

(a) You have to first install the package called gnome-panel. So open the terminal and use given below commands.

sudo apt update
sudo apt install gnome-panel

Now run the next command in terminal.

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

You will see new Window is opened with vacant field. It is pretty much easy to fill these field.

desktop launcher ubuntu

In above screen you can see the window has 5 options. Are you wondering what is 5th option we are talking then answer is you can customize the icon also. This is at top right hand side of icon section. In below we are specifying which you can write.

Type: It offers 3 type that is Application, Application in Terminal and Location. Here we are selecting “Application” which is default one.
Name: Write the name of launcher.
Command: Write the command name. You can also write absolute path of command with some arguments.
Comment: Write your own comments.

In our sample practical, we are creating the ‘Terminal’ desktop icon. The given below information is same of above shared screenshot.

– We have selected the Application Type
– We have written the name of launcher as “MyTerminal” in ‘Name’ section
– We also know that by using command gnome-terminal new terminal will be opened hence using it in ‘Command’ section.
– In ‘Comment’ section we have just written some description reference.

(b) After providing all information, click OK button to save. You will get the ‘Desktop Launcher’ on your system Desktop now. In below screenshot, we have shown our ‘Desktop Launcher’

desktop launcher ubuntu

That’s it. Do Double click on the icon, it should work for you.

Create Desktop Launcher via command line

This method is for who loves working in terminal. And actually this is the basic way of creating Desktop Launcher. You can read our post on Shotcut Installtion in which we have written about creating desktop launcher.

(a) Open the terminal and by using your favourite file editor create new file with extension .desktop .

sudo vi ~/Desktop/MyTerminal.desktop

Paste the given below contents and modify the parameters.

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon=gnome-terminal
Name=MyTerminal
Exec=gnome-terminal
Comment=Example Desktop Launcher For terminal

Basically edit only below parameters in file.

Type= Application (Keep the value ‘Application’ as it is)
Icon= Name of icon file having .svg extension. By default location of icon is /usr/share/icons/Humanity/apps/[font_size]. Save your customize icon .svg file in default location and in ‘Icon’ only give file name.See above sample.
Name= Give the name of your Desktop Launcher
Exec= Give the command name which will open the application.

(b) Give executable permission to your .desktop file. In our example, we will use below given command hence replace file name ‘MyTerminal.desktop’ with your desktop file name.

sudo chmod +x MyTerminal.desktop

Now check, launcher will be available in Desktop. Do double click on desktop launcher to open the application.

Desktop launcher in Dash home

This is very simple to get desktop launcher in Dash home. You only have to copy the .desktop file in /usr/share/applications/ .

note: Replace MyTerminal.desktop with your .desktop file in given below command.

sudo cp ~/Desktop/MyTerminal.desktop /usr/share/applications/

Now open the ‘Dash home’ by pressing “Alt+F2” keys and type your launcher name. It should be there for sure.

See our launcher in ‘Dash Home’.

Desktop launcher in dash home

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Install KVM on Ubuntu 14.04 LTS Desktop
  2. sdcard not mounted Ubuntu 14.04 LTS Desktop
  3. Upgrade firefox on Ubuntu 14.04 LTS Desktop
  4. How to Upgrade Ubuntu 14.04 to 16.04 LTS Desktop
  5. Install OpenShot 2.2 on Ubuntu 16.04 LTS Desktop
  6. Install Shotcut on Ubuntu 16.04 LTS desktop
  7. How to install KVM on Ubuntu 16.04 LTS Desktop
  8. How To Upgrade Ubuntu 16.04 To 18.04 LTS Desktop
  9. Install KVM on Ubuntu 20.04 LTS Desktop
  10. Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

Filed Under: Linux Tagged With: desktop launcher, desktop shortcut

Reader Interactions

Comments

  1. Will Smith says

    March 30, 2018 at 2:17 am

    Brilliant. Thanks =)

  2. wahyudi says

    September 15, 2017 at 4:01 am

    show icon only, no text in desktop. Any sugesstion?
    Ubuntu 16.04 LTS

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

convert space into new line using sed command

How to empty Trash through command line in Ubuntu

Forward all incoming emails to other SMTP server or gateway

How to hide php version information in header

How to convert float to integer number

How to put slider shortcode only in home page in WordPress

Forgot root password ,Reset it in Run level 1

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy