On Mon, 20 Dec 2010, Facundo Andrés Bianco wrote:
2010/12/20 rxvt-unicode wrote:
-----Original Message-----
From: Facundo Andrés Bianco
Sent: 19 December 2010 23:03
To: [email protected]
Subject: Re: Generic icon shown in Task List and alt+tab list
2010/12/19 rxvt-unicode:
Hello :-)
rxvt-unicode 9.10, running under Xfce 4.6.1 on Slackware64 13.1,
displays what I believe is the Xfce generic icon in the Task List
and in the alt+tab list.
[...]
Incidentally, every other desktop application but one, a Python program,
does display an appropriate icon.
FWIW, I had the same problem under GNOME or whatever I was using before
I discovered tiling WMs. There were at least two problems:
1. GNOME was only using the icon as specified in an application's
'.desktop' file. So, rxvt-unicode had no application-specific icon.
2. Even once I set the icon explicitly via _NET_WM_ICON, GNOME ignored
it unless I mangled the WM_HINTS property of the window (at which point
it updated the icon).
I've the same problem on openbox.
For URxvt, I solved it compiling with in "--enable-afterimage"
(requires afterimage package). Or you can use xseticon[1] - if you
want some script I made, write me an email (to avoid offtopic)
I solved the problem under GNOME with two things:
1. a Python script that used GTK to set the _NET_WM_ICON and tickle the
WM_HINTS flags to get the WM to notice the changes.
and
2. a Perl rxvt-unicode extension to handle the XTerm-ian "set icon"
sequence.
I've put up a page with short descriptions of both at
http://benizi.com/set-icon/ (the script for #2 is pared down a bit.
Please let me know if there are issues.).
Example of setting the icon once both scripts are "installed" (put the
Python script in your PATH; put the Perl extension where you put your
rxvt-unicode extensions):
echo "\033]1;gnome-terminal\007"
sets the icon to a terminal icon (example is using the default locations
for GNOME icons)
echo "\033]1;/home/bhaskell/some-file.png\007"
sets the icon to some-file.png in my home dir
--
Best,
Ben
_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode