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 How do I add Eclipse Indigo to the launcher? but no answer worked for me. (Mod note: The answers from this thread are now merged into this one)
For 11.10 and newer
First, create a .desktop file to eclipse:
Then, paste this inside (dont forget to edit Exec and Icon values):
After that, open that folder with nautilus:
If you want to use this launcher outside dash/launcher (ex: as a desktop launcher) you need to add execution permission by right clicking the file and choosing Properties -> Permissions -> Allow execution, or, via the command-line:
Finally drop
opt_eclipse.desktop
to launcher.For Ubuntu 11.10, 12.04, 12.10
If the
applications
folder does not exist inside~/.local/share/
create itCheck if your installation left you with a workable .desktop file for Eclipse and copy it if exists
If the file does not exist create a .desktop file for Eclipse in your
~/.local/share/applications/
folder usinggnome-desktop-item-edit
, ie:On the name set it to Eclipse, on the command enter the path to the binary file of Eclipse, insert a comment if you want and click the icon to select the icon that you desire for Eclipse.
Press ok when you are finished.
After copying the file or creating your own open that folder location
Locate the file you just created and drag it to the launcher
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:If you experience bugs, you can try the Exec line which is commented out instead of the current one.
References:
Let me show you how to create a custom launcher and pin it to the Launcher.
1) First, install gnome-panel:
2) To create a new desktop shortcut run the following command either in the terminal or using Alt-F2:
A window will pop up, submit your shortcut details and click OK:
Your shortcut will now appear on your desktop.
Then drag your new shortcut from Desktop to your Launcher.
That's it!
If you have donwloaded Eclipse from the website instead of install it from repositories you can lock the launcher doesn't work. You can solve this by writting the file with extension .desktop, in our case eclipse.desktop.
Where /path is where you've installed eclipse. After you have saved it, you have to give execution permission:
Then you execute it with Nautilus and by clicking (right click) over the laucher you can lock to the launcher. And you can launch the app correctly.
I think this is a cleaner version:
You should add this to
/usr/local/share/applications/eclipse.desktop
and symlink eclipse on/usr/bin
. You might want to change the icon path if your theme doesn't have a eclipse button (ex. ambiance/radiance).If I'm not mistaken this is the file that comes with galileo from the repos (wich I removed), and I've been using it with Helios and now Indigo.
18.04
Click Show Applications, find Eclipse in the list, right click & Add to Favourites.
For 12.04
I prefer to install from repository. This just works for me and I document the Graphical way to do it here.
If you must install the portable version(getting the tar.gz from the eclipse website) here's the best way I've found to get portable working and locked to the Launcher.
Download the eclipse portable and extract to your Desktop. In a terminal:
Right click the icon in the launcher bar and pin to bar. I can verify that it's portable and not the platform because I have LOADS of plug-ins installed which don't appear when launched this way.
You may find that creating a .desktop file works, but that you run into mysterious behaviour if you have more than one portable instance installed.
Try
or make /home/USERNAME/eclipse/eclipse executable
and use:
Make sure if you're using the 32bit version on a 64bit machine, you install the 32bit libraries (
ia32libs-multiarch
i think is the package in Precise).Alternatively, if you're trying to run 64bit Eclipse on a 32bit machine, you need to download the 32bit version instead.