About half of my applications show up with the same default icon. I have to switch frequently between as many as 8 or 10 apps (I use the computer with LXDE to make music). It is hard to do so quickly when the icons are all the same. The icons are set to unique values in the various *.desktop files. Any suggestions would be great,
thanks
lxpanel shows generic icon for many apps? Any fix?
-
- Posts: 381
- Joined: Mon Mar 23, 2009 5:14 am
Re: lxpanel shows generic icon for many apps? Any fix?
Consider one of the failing cases. Locate the Icon string from the .desktop file. Look in ~/.gtkrc-2.0 and possibly .gtkrc-2.0.mine for gtk-icon-theme-name="something". If "something" isn't ever defined, the default is "hicolor".
If the Icon string is a path, that is the icon. If the icon string does not contain a slash, that name is looked up in a few places.
One is /usr/share/pixmaps. The other is all the directories under /usr/share/icons/<something> that you found in the .gtkrc file.
The standard is here if you want to read. http://standards.freedesktop.org/icon-t ... atest.html
If the Icon string is a path, that is the icon. If the icon string does not contain a slash, that name is looked up in a few places.
One is /usr/share/pixmaps. The other is all the directories under /usr/share/icons/<something> that you found in the .gtkrc file.
The standard is here if you want to read. http://standards.freedesktop.org/icon-t ... atest.html
Re: lxpanel shows generic icon for many apps? Any fix?
Thanks - that helps in other ways (I didn't know where it was looking for icons w/out paths). However, while that applies to the menu it doesn't work for the panel. Perhaps I've missed something. Any hints anyone?
-
- Posts: 381
- Joined: Mon Mar 23, 2009 5:14 am
Re: lxpanel shows generic icon for many apps? Any fix?
The launchbar works the same as the menu.
Icons for the taskbar come from the application. It does this by putting an X Window System "hint" on its toplevel window at runtime. They should be working as well as they work in any other desktop environment. If you mention a few applications that don't work, I might be able to understand why yours don't.
The standard for *that* is http://standards.freedesktop.org/wm-spe ... atest.html
Icons for the taskbar come from the application. It does this by putting an X Window System "hint" on its toplevel window at runtime. They should be working as well as they work in any other desktop environment. If you mention a few applications that don't work, I might be able to understand why yours don't.
The standard for *that* is http://standards.freedesktop.org/wm-spe ... atest.html
Re: lxpanel shows generic icon for many apps? Any fix?
Thanks Marty Jack - you're prompt!
I'm going from memory at the moment and in a rush, but seems the menu uses icons defined in *.desktop files, so I'm not sure... oh, I bet you mean it looks in the same places and parses the names the same way. That makes sense.
You might know off the top of your head: Is there a way to wrap an application in a script so that it adds _NET_WM_ICON (or whatever the variable was) to the app as it starts, and in doing so get it to have an icon of choice as it is launched?
If you mention a few applications that don't work, I might be able to understand why yours don't.
Alsa Modular Synth is one I think can be installed with minimal prerequisites, though since it doesn't show a specific icon in gnome panel either I doubt you still have reason to try.
Thanks once more!
Marty Jack wrote:The launchbar works the same as the menu.
I'm going from memory at the moment and in a rush, but seems the menu uses icons defined in *.desktop files, so I'm not sure... oh, I bet you mean it looks in the same places and parses the names the same way. That makes sense.
That's where I erred: all the apps I'm bothered by are ones I only started using when I started using lxde - lots of music apps, using them on AV Linux. I checked after reading this and found the same ones, or at least the small sample I checked, have the problem w/ gnome panel as well.They should be working as well as they work in any other desktop environment.
Marty Jack wrote:Icons for the taskbar come from the application. It does this by putting an X Window System "hint" on its toplevel window at runtime.
You might know off the top of your head: Is there a way to wrap an application in a script so that it adds _NET_WM_ICON (or whatever the variable was) to the app as it starts, and in doing so get it to have an icon of choice as it is launched?
If you mention a few applications that don't work, I might be able to understand why yours don't.
Alsa Modular Synth is one I think can be installed with minimal prerequisites, though since it doesn't show a specific icon in gnome panel either I doubt you still have reason to try.
Thanks once more!
-
- Posts: 381
- Joined: Mon Mar 23, 2009 5:14 am
Re: lxpanel shows generic icon for many apps? Any fix?
Alas, there is no way to influence the icon from outside the application. It takes program code to put it there. Best encourage the application developers to add it. Well, I suppose the window manager could fake it, but I'm not aware of any that offer that gross hack.
This is somewhat poignant for me since one of the first things I fixed in LXDE even before getting commit privileges was a bug that caused taskbar icons to be missing even though they were there, and that was just about a year ago.
This is somewhat poignant for me since one of the first things I fixed in LXDE even before getting commit privileges was a bug that caused taskbar icons to be missing even though they were there, and that was just about a year ago.
Re: lxpanel shows generic icon for many apps? Any fix?
This is too bad. I was hoping someone had come up with some elegant way to inject the info when launching an app, if that makes any sense.
Thanks for the help, though - you've saved me from a long and fruitless hunt.
In case others are looking: I think one of the OSX style docs has the ability to customize icons, not sure which one, but I'm 90% sure I saw one that did when testing a bunch. I simply can't recall which even though it was just a couple days ago, and won't have time to check for a while yet. I don't like docs of that sort but will add one if I have to.
Thanks for the help, though - you've saved me from a long and fruitless hunt.
In case others are looking: I think one of the OSX style docs has the ability to customize icons, not sure which one, but I'm 90% sure I saw one that did when testing a bunch. I simply can't recall which even though it was just a couple days ago, and won't have time to check for a while yet. I don't like docs of that sort but will add one if I have to.