Skip to content

Instantly share code, notes, and snippets.

@lamngockhuong
Last active May 16, 2018 03:59
Show Gist options
  • Save lamngockhuong/b49e5fe09c51e365f7a5a0dc85f46a08 to your computer and use it in GitHub Desktop.
Save lamngockhuong/b49e5fe09c51e365f7a5a0dc85f46a08 to your computer and use it in GitHub Desktop.
[Eclipse Shortcut for Ubuntu Unity] - ubuntu, java, eclipse

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.githubusercontent.com/raw/b49e5fe09c51e365f7a5a0dc85f46a08/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/b49e5fe09c51e365f7a5a0dc85f46a08
[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment