Total Pageviews

Monday, November 9, 2015

How to pin STS icon to the unity launcher

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=/home/manish/sts-3.7.1.RELEASE/icon.xpm **  Exec=/home/manish/sts-3.7.1.RELEASE/STS  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.


Thanks & Regards
Manish Kumar

No comments:

Post a Comment