Pinning Eclipse to the Unity Launcher on Ubuntu

The Eclipse distribution which you can install using Ubuntu’s Software Center is usually quite old. So you just download the latest version from the official web site. Everything is fine except the fact that now you have no way to pin the application to the Unity Launcher. I usually follow the instructions below to work round this limitation.

1) Download the latest version of Eclipse and unpack it to a folder named after the name of the actual release (i.e. eclipse-luna):

sudo tar xvfz eclipse-standard-luna-R-linux-gtk-x86_64.tar.gz 

sudo mv eclipse eclipse-luna 

2) Create a symbolic link pointing to the eclipse installation which will serve as an alias:

sudo ln -s eclipse-luna eclipse 

3) Create a symbolic link in /usr/bin pointing to the executable file:

sudo ln -s /opt/eclipse/eclipse /usr/bin/eclipse 

4) Create a symbolic link in /usr/share/pixmaps pointing to the application icon:

sudo ln -s /opt/eclipse/icon.xpm /usr/share/pixmaps/eclipse.xpm 

5) Create the desktop file eclipse.desktop in /usr/share/applications with the following content:

[Desktop Entry]

Type=Application

Name=Eclipse

Comment=Eclipse Integrated Development Environment

Icon=eclipse

Exec=env UBUNTU_MENUPROXY=0 eclipse

Terminal=false

Categories=Development;IDE;Java;

6) Now run the application by typing eclipse in the command line, right click on the launcher icon and choose “Lock to Launcher” in the context menu:

pin_eclipse_to_unity_launcher

In the future, after downloading a new version just update the symbolic link. Enjoy!

Share on FacebookShare on LinkedInShare on Google+Tweet about this on TwitterPin on PinterestShare on RedditDigg this

Vitaly Tsaplin

Hey, I am Vitaly and this is my blog. I live in Basel and work at Adobe.

More Posts - Website

Follow Me:
TwitterFacebookLinkedInGoogle Plus

Leave a Comment

Time limit is exhausted. Please reload CAPTCHA.