Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 14 down vote accepted

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.

share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.