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.

This question already has an answer here:

I installed eclipse juno to /usr/local/eclipse and added it to the $PATH. So I can run it from terminal simply by entering "eclipse". Now I want a launcher icon for it and it would be nice to have it in the applications when you search for it. This seems to complicated considering the tutorials I found. When I launch eclipse I can lock it to the launcher, but it will not start from there when I click the icon.

How do I get it to the launcher AND to the search?

share|improve this question

marked as duplicate by Jorge Castro, Basharat Sialvi, bcbc, Eric Carvalho, AgentCool Apr 27 '13 at 15:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
You will get better answer if you stick to a question relating to the problem. A large part of your question is a rant. The method user68186 mentions, to me, is the easiest method there is. And in case the launcher does not work you can start the command it uses from command line and see if it throws any errors (but that error is probably not Unity's fault ;-) ) –  Rinzwind Apr 26 '13 at 13:42
    
This isn't a launcher issue, it's that Eclipse's .desktop file doesn't come with the right bits. –  Jorge Castro Apr 26 '13 at 14:14

1 Answer 1

I agree. It is complicated. You have 2 options.

ONE:

Install a program called 'Alacrity' or 'Main Menu' from the software center. It will create launchers as you desire. It is that "add to launcher" program you are looking for.

TWO:

You can create a .desktop file (same thing as a launcher), and place it here: ~/.local/share/applications

I believe the format for a .desktop file goes something like this:

[Desktop Entry]
Type = Application
Name = name-of-application
Comment = your-desired-comment
Exec = command to execute (ex. 'eclipse')
Icon = path-to-icon

More info about .desktop files can be found here: http://standards.freedesktop.org/desktop-entry-spec/latest/

share|improve this answer

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