Linking an Icon to an executable in Ubuntu
To link an icon to an executable in Ubuntu you need to do the following:
(In my example I will be using Aptana Studio)
1. Open a terminal window and go to /usr/share/applications
2. Create a desktop file by running sudo gedit app-name.desktop (aptana.desktop)
3. Add the following properties to the .desktop file
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Eclipse
Comment=Aptana Studio IDE
Exec=/opt/Aptana_Studio_3/AptanaStudio3 (your executable)
Icon=/opt/Aptana_Studio_3/icon.xpm (your icon)
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
Save the File
If you now search for your application the icon should be linked to the executable.
Update:
In order to get the icon appearing in the launcher bar, I had to copy the aptana.desktop file into
~/.local/share/applications/
I then pressed the windows key and searched for 'aptana' and dragged the icon to the launcher bar.
(In my example I will be using Aptana Studio)
1. Open a terminal window and go to /usr/share/applications
2. Create a desktop file by running sudo gedit app-name.desktop (aptana.desktop)
3. Add the following properties to the .desktop file
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Eclipse
Comment=Aptana Studio IDE
Exec=/opt/Aptana_Studio_3/AptanaStudio3 (your executable)
Icon=/opt/Aptana_Studio_3/icon.xpm (your icon)
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
Save the File
If you now search for your application the icon should be linked to the executable.
Update:
In order to get the icon appearing in the launcher bar, I had to copy the aptana.desktop file into
~/.local/share/applications/
I then pressed the windows key and searched for 'aptana' and dragged the icon to the launcher bar.
Comments
Post a Comment