Ubuntu: How to pin Eclipse to the Unity launcher?

Опубликовано: 04 Август 2026
на канале: Roel Van de Paar
33
0

👉 https://amzn.to/4aLHbLD 👈 You’re literally one click away from a better setup — grab it now! 🚀👑

As an Amazon Associate I earn from qualifying purchases. Ubuntu: How to pin Eclipse to the Unity launcher?


Question: How can I pin eclipse indigo 3.7 I have 'installed' at /opt/ to the taskbar?
I have tried launching eclipse and right-clicking to choose the 'keep in
launcher' option. But when I click that icon, after closing eclipse, it doesn't
start eclipse.
I have already looked at https://askubuntu.com/questions/53001...
eclipse-indigo-to-the-launcher but no answer worked for me. (Mod note: The
answers from this thread are now merged into this one)

Solutions Sample (Please watch the whole video to see all solutions, in order of how many people found them helpful):

== This solution helped 12 people ==
Let me show you how to create a custom launcher and pin it to the Launcher.
1) First, install gnome-panel:
sudo apt-get install --no-install-recommends gnome-panel
2) To create a new desktop shortcut run the following command either in the
terminal or using Alt-F2:
gnome-desktop-item-edit --create-new ~/Desktop
A window will pop up, submit your shortcut details and click OK:
[enter image description here]
Your shortcut will now appear on your desktop.
Then drag your new shortcut from Desktop to your Launcher.
That's it!

== This solution helped 16 people ==
**** 11.04 ****
If user21580's answer doesn't work (great suggestion, but I think it didn't
work for me when I installed Indigo), you can try adding an eclipse.desktop
file to ~/.local/share/applications/, with these contents:
#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
StartupNotify=true
Icon=<path-to-eclipse-install>/icon.xpm
Name=Eclipse Indigo 3.7
#Exec=env UBUNTU_MENUPROXY=0 <path-to-eclipse-install>/eclipse
Exec=env <path-to-eclipse-install>/eclipse
If you experience bugs, you can try the Exec line which is commented out
instead of the current one.
References:
https://askubuntu.com/questions/13758...
items-in-unity-by-hand

== This solution helped 1 person ==
I have tested it for Eclipse MARs(not the installation one)-but the one which
is tar.gz package on Ubuntu Desktop 14.0.4
gedit /usr/share/applications/eclipse.desktop
contents for this:
[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=** something like /opt/eclipse/icon.xpm **
Exec= ** something like /opt/eclipse/eclipse **
Terminal=false
Categories=Development;IDE;Java;
StartupWMClass=Eclipse
Then in the finder search for Eclipse when the menu comes up - just drag it to
the launcher and then it will start working. Very simple steps and nothing
complicated to get it up and running.

== This solution helped 1 person ==
**** 18.04 ****
Click Show Applications, find Eclipse in the list, right click & Add to
Favourites.

With thanks & praise to God! With thanks to the many people who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music: https://www.bensound.com/royalty-free... | Images: https://stocksnap.io/license & others | With thanks to user Thomas Ward (https://askubuntu.com/users/10616), user sergio91pt (https://askubuntu.com/users/3303), user Salem (https://askubuntu.com/users/33871), user RobotHumans (https://askubuntu.com/users/5768), user Phil (https://askubuntu.com/users/446317), user nunos (https://askubuntu.com/users/30727), user Joe (https://askubuntu.com/users/64371), user fouric (https://askubuntu.com/users/47437), user Christoph (https://askubuntu.com/users/11069), user Chai T. Rex (https://askubuntu.com/users/616451), user Bruno Pereira (https://askubuntu.com/users/25863), user Binsh (https://askubuntu.com/users/60083), user Atem18 (https://askubuntu.com/users/22349), user Ashu (https://askubuntu.com/users/367882), and the Stack Exchange Network (http://stackoverflow.com/questions/80.... Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything should be amiss at Roel D.OT VandePaar A.T gmail.com.