Ubuntu – How to add a name to a launcher


I added application to launcher like this. I run it from command line, then when icon appeared in launcher, I right clicked it and checked "Keep In Launcher".

It works fine, but I'd like to add name to this launcher icon. When I hover over some other icon in the lanucher, a name appears. On icon I added there is no name. How can I add one?

Best Answer

Hi the most basic *.desktop file you could create would be:

[Desktop Entry]

This is an example I use for eclipse. I created it like this

sudo nano /usr/share/applications/eclipse.desktop

After that you have to make it executable with

sudo chmod +x /usr/share/applications/eclipse.desktop 

Than if you want to add it to the launcher just execute it (navigate to /usr/share/applications/ and double click eclipse) and right click on the icon in the laucher and select "Keep In Laucher"
The application will now also be displayed when you search for applications in the application lens.

Related Question