Skip to content

Instantly share code, notes, and snippets.

@kui
Created June 13, 2012 06:34
Show Gist options
  • Save kui/2922285 to your computer and use it in GitHub Desktop.
Save kui/2922285 to your computer and use it in GitHub Desktop.
Eclipse Shortcut for Ubuntu

Eclipse Shortcut for Ubuntu Unity

a shortcut to run Eclipse on Ubuntu Unity and to register Eclipse with the left Launcher

Installation

In your terminal,

cd ~/.local/share/applications
wget https://gist.github.com/raw/2922285/eclipse.desktop
chmod u+x eclipse.desktop
vim eclipse.desktop
# edit eclipse.desktop to replace "<ECLIPSE_DIR>" with your eclipse directory

Register Eclipse with Unity Launcher

  1. In your terminal, xdg-open ~/.local/share/applications to open the directory with the file browser
  2. Drag and drop the eclipse.desktop on Unity Launcher
# Eclipse Shortcut
# https://gist.github.com/2922285
[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=<ECLIPSE_DIR>/icon.xpm
Exec=<ECLIPSE_DIR>/eclipse
Terminal=false
Categories=Development;IDE;Java;
StartupWMClass=Eclipse
@aino-gautam
Copy link

@Maliksajad004, Sometimes it does not work straight.

Below is how you can fix this problem $gsettings get org.gnome.shell favorite-apps you will see something like - ['org.gnome.Nautilus.desktop', 'org.gnome.Software.desktop', 'google-chrome.desktop']

Now add eclipse.desktop in this your favorite app using : $gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop', 'org.gnome.Software.desktop', 'google-chrome.desktop','eclipse.desktop']"

You will see the eclipse icon on the favorite bar and when you click on it, It should work.

that did the trick.. neat :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment