A question about program icons ...

Jon TURNEY jon.turney@dronecode.org.uk
Mon Aug 1 15:12:00 GMT 2011

On 29/07/2011 15:10, Csaba Raduly wrote:
> On Thu, Jul 28, 2011 at 5:47 PM, Eliot Moss  wrote:
>> Recently I started using startxwin and .XWinrc and am
>> getting used to -multiwindow mode.  Something I have been
>> wondering is where the program icons actually come from.
>> For example, I cannot for the life of me find the icons
>> used for xemacs (has a little red XE in it)
> That seems to be /usr/share/xemacs-21.4.22/etc/xemacs-icon.xpm and
> xemacs appears to set it programatically.

The window icons (shown on taskbar, top-left of window, etc.) are indeed set 

This is the case for normal windows applications as well. There is no 
requirement that the icon associated with a shortcut and the window icon which 
is actually used by an application started by that shortcut be the same.

The multiwindow mode integrated WM understands about _NET_WM_ICON [1] and 
WM_HINTS [2] X window properties and hopefully converts a suitable icon found 
there on the fly into a Windows icon.

It's up to the X application itself how those properties get set.

[1] http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2507733
[2] http://tronche.com/gui/x/icccm/sec-4.html#WM_HINTS

> When started from mintty, the xemach window has the generic Cywgin-X
> icon, then switches to the red XE icon after it gets initialized.
> xemacs is just a shortcut:
> $ ls -l /bin/xemacs
> lrwxrwxrwx 1 ecsardu root 18 Jul 29 15:41 /bin/xemacs ->  xemacs-21.4.22.exe*
> When started from a windows shortcut pointing to xemacs-21.4.22.exe,
> it shows up with the icon of xemacs-21.4.22.exe and does not change
> (because there is no DISPLAY in my Windows environment).

Volunteer Cygwin/X X Server maintainer

Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

More information about the Cygwin-xfree mailing list