Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
add comment

4 Answers 4

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

[Desktop Entry]
Name=eclipse
Type=Application
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm

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.

share|improve this answer
    
It doesn't work. Probably because I run script, which runs the application itself. –  amorfis May 12 '11 at 9:22
add comment

Open a new text file and paste this:

[Desktop Entry]
Name=
Comment=
Exec=
Icon=Google-Tools
Terminal=false
Type=Application
StartupNotify=true

Fill in the desired name, comment and command. Save it as a .desktop file and move it to ~/.local/share/applications

Log out, and log back in and that should do it.

share|improve this answer
add comment

Launchers is just *.desktop files. You can find most of them in /usr/share/applications folder. Just Drag & Drop the *.desktop files into your unity launch bar and that's it. Or more easly, search the app with the dashboard (in serach mode with <Alt><F2> command or with the 'Application Lens' (<Super><A>) and drag and drop the shortcut from the dash to the launcher bar.

But maybe the app is a script that you created or something like this, not referenced in Ubuntu. In this case you can create your own launcher as Leron said (you can change the icon too ;) )

I hope my explaination will help you

BR,

share|improve this answer
add comment

Find the *.place (*desktop) and add the option

Name={your descripton}

Example with the Ask Ubuntu lens:

askubuntu.place:

[Place]
DBusName=net.launchpad.AskUbuntuPlace
DBusObjectPath=/net/launchpad/askubuntuplace

[Entry:Stuff]
DBusObjectPath=/net/launchpad/askubuntuplace/mainentry
Icon=/usr/share/unity-place-askubuntu/askubuntu-place.png
Name=Ask Ubuntu
Description=Ask Questions and Get Answers on Ask Ubuntu
SearchHint=Search Ask Ubuntu
Shortcut=u

[Desktop Entry]
X-Ubuntu-Gettext-Domain=askubuntu-place
share|improve this answer
    
Where should I look for the *.place? –  amorfis May 1 '11 at 15:04
    
amorfis: looks like it either is /usr/share/unity/places or /usr/share/app-install/desktop But you made that launcher yourself (?) –  Rinzwind May 1 '11 at 20:24
    
At /usr/share/unity/places I have only applications.place and files.place. At /usr/share/app-install/desktop I have a lot of *.desktop files, but no *.place file. –  amorfis May 1 '11 at 20:54
    
Look in .local/share/applications –  Jorge Castro May 1 '11 at 21:15
    
Thanks @Jorge, but it's not there :( –  amorfis May 3 '11 at 21:19
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.