Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
354
rated 0 times [  354] [ 0]  / answers: 1 / hits: 275361  / 1 Year ago, sat, december 31, 2022, 11:48:18

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)


More From » unity

 Answers
5

For 11.10 and newer



First, create a .desktop file to eclipse:



gedit ~/.local/share/applications/opt_eclipse.desktop


Then, paste this inside (dont forget to edit Exec and Icon values):



[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


After that, open that folder with nautilus:



nautilus ~/.local/share/applications


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:



chmod +x ~/.local/share/applications/opt_eclipse.desktop


Finally drop opt_eclipse.desktop to launcher.


[#42009] Sunday, January 1, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
donurp

Total Points: 328
Total Questions: 128
Total Answers: 123

Location: Faroe Islands
Member since Thu, Apr 8, 2021
3 Years ago
;