Page 1 of 1

How to set icons for apps. invoked from command line?

Posted: Sat Oct 31, 2009 3:06 am
by ryofurue
Hi all,

I'm wondering how to set an icon for an application invoked from the command line. Basically I want to know how lxpanel "knows" which icon to use. For example, when you type

Code: Select all

   $ /usr/bin/emacs22
the taskbar (lxpanel) shows the icon of emacs. How does the panel know which one to use?

If you find out how the panel does it, you can add or change icons.

Cheers,
Ryo

Re: How to set icons for apps. invoked from command line?

Posted: Sun Nov 01, 2009 6:20 pm
by Marty Jack
The application sets the icon that it wants on the taskbar into the _NET_WM_ICON property of its window.

Re: How to set icons for apps. invoked from command line?

Posted: Wed Nov 04, 2009 1:33 am
by ryofurue
Thank you for your response.
The application sets the icon that it wants on the taskbar into the _NET_WM_ICON property of its window.
I see. That means there is no easy or systematic way to change those icons. I thought there were a more modern way like .desktop files. But, I think lxpanel could, in principle, override the application's "wish". (I think I saw window managers that do it. IceWM?)

Regards,
Ryo