Original discussion here: http://forums.gentoo.org/viewtopic.php?t=40424 I cannot get Emacs to show its icon in the GNOME window panel. I have not tried anywhere else, so I'm not sure if this is GNOME specific, Emacs specific, or Gentoo specific. Basically, Emacs just shows the generic "new file" icon. I read that you can set ~/.Xresources to make emacs show an icon, so that's what I did: ~/.Xresources: emacs*bitmapIcon: on Emacs*bitmapIcon: on $ appres Emacs | grep -i icon Emacs*bitmapIcon: on $ appres emacs | grep -i icon emacs*bitmapIcon: on I do not know what else to try. I'm not sure if this is an upstream bug, but I would appreciate anyone's knowledge of the situation :) Reproducible: Always Steps to Reproduce: 1. open emacs 2. see generic "new file" icon being used Expected Results: Emacs should show an application-specific icon on the panel. Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.10-ck5 i686) ================================================================= System uname: 2.6.10-ck5 i686 Intel(R) Celeron(TM) CPU 1400MHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r2 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="no" CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS=" ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirror.clarkson.edu/pub/distributions/gentoo/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://mirrors.tds.net/gentoo http://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa avi berkdb bitmap-fonts cdr dga dvd encode f77 fam font-server foomaticdb fortran gdbm gif gnome gtk gtk2 hal imagemagick imlib java jpeg libg++ libwww mikmod mmx motif mpeg mysql ncurses nls opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell sqlite sse ssl svga tcpd truetype truetype-fonts type1-fonts xml xml2 xv zlib"
The window list application just uses what ever icon the app has set to show in the top corner. This is an issue with emacs not using what ever the standard wm hint is for displaying an icon(_NET_WM_ICON_NAME I think)
Created attachment 50306 [details, diff] Patch to make gtk2 emacs display an icon. Here's a patch to fix the missing icon. I will try to submit it upstream was well.
Hi aethyr, how did the upstream patch sending go? I'm hesitant to patch cvs pulls, so if this bug report can be resolved just by waiting on upstream...
xg_set_icon in src/xfns.c in emacs-cvs looks like it sets the wm icon.