Ubuntu – Apply icons to bash scripts


I created a script for XChat according to this answer, and I was wondering if there is anyway to apply XChat icon to it.

Best Answer

Create a .desktop file like this and put it in /usr/share/applications/

[Desktop Entry]
Name=XChat Firefox

"XChat Firefox" will then be a launchable application with XChat's icon. Exec can also take a bash command (with arguments, optionally) as its value.

For a complete explanation of the .desktop format, see this specification.

Related Question