If you are using Ubuntu 11.04 (comes with the Unity interface) together with the Aptana Studio IDE, here is a way to add a working launcher icon for Unity. Aptana/Eclipse don’t yet support the global menu in Unity. With this launcher, the global menu support is deactivated for the aptana application only.
First open a text editor (ex. gedit) and add the following:
#!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=false StartupNotify=true Icon[en_US]=/opt/apps/aptana/icon.xpm Name[en_US]=Aptana Studio 3 Exec=env UBUNTU_MENUPROXY=0 /opt/apps/aptana/AptanaStudio3 -application com.aptana.commandline.launcher.LauncherApplication "$@" > /dev/null 2>&1 & Name=Aptana Studio 3 Icon=/opt/apps/aptana/icon.xpm
You first need to change some of the paths to match the location where you have the aptana folder in your system. In my system, I have aptana installed in /opt/apps/aptana. Then, save the file with a name like “aptana3.desktop” into a directory out of your way. Just make sure you don’t delete this file later on by accident. I saved it inside my aptana folder. Next open the file browser (nautilus), go to the folder where you saved the .desktop file and drag and drop the file into the Unity bar on the left. That’s it!