Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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

How do I set the default title bar icon for X11 applications? The xterm on my machine is displaying an icon with a red x instead of the normal application-default icon. Changing themes in gnome doesn't help either.

share|improve this question
Do you want to change the icon for xterm alone or for all applications? – Gowtham Mar 27 '12 at 15:57
All applications – Alexander Stolz Mar 27 '12 at 16:09
up vote 2 down vote accepted

You could do this system-wide by changing the Icon value in the corresponding .desktop entry for xterm. These types of entries are usually located in /usr/share/applications. Look for the entry named something like xterm.desktop and set the Icon value to an image file located somewhere in /usr/share/icons i.e. Icon=my_xterm_icon.png. You might want to check if there is already some icons that you want to use there:

$ find /usr/share/icons -iname "*xterm*" -print

Apply this to all entries to have all X11 applications use the same icon.

share|improve this answer

At least for the annoying XTerm icon, running the xterm command with an additional option: +ai should remove that icon...

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.