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

Please post all general support questions for LXDE here.
Locked
ryofurue
Posts: 12
Joined: Wed Feb 18, 2009 7:44 am

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

Post 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
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

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

Post by Marty Jack »

The application sets the icon that it wants on the taskbar into the _NET_WM_ICON property of its window.
ryofurue
Posts: 12
Joined: Wed Feb 18, 2009 7:44 am

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

Post 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
Locked