13

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

Oxwivi
  • 17,589
  • 53
  • 136
  • 197

2 Answers2

21

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

[Desktop Entry]
Type=Application
Name=XChat Firefox
Exec=/usr/bin/your_script
Icon=/usr/share/icons/xchats_icon

"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.

Jjed
  • 13,714
  • 10
  • 63
  • 91
J Johan Edwards
  • 226
  • 2
  • 2
2

After copying your appname.desktop file to /usr/share/applications you may have to wait a few minutes while kbuildsycoca4 rebuilds the system config cache.

SSpencer
  • 21
  • 1