KDE4 - Task Manager - not showing launcher icon?
zgong at bnl.gov
Mon Mar 26 21:26:57 BST 2018
I have figured it out.
To have the icon displayed correctly on task manager in KDE4, two points:
--you need to have the icon file (.xpm or .png) in folder /usr/share/pixmaps
--the icon file name has to be all lowercase!
On 03/19/18 10:20, Zaiwen Gong wrote:
> We are using KDE 4.10.4.
> I have one question about the Task Manager widget
> When I add the Task manager widget to my panel, any applications I
> run(actually our own application) will not show the application's icon
> we specified in its .desktop file.
> Instead, it will just display the same system icon (X with a circle)..
> I already checked all below:
> --Make sure the name of the .desktop file matches what the application
> sets as WM_CLASS window.
> --Make sure that what's set as WM_CLASS makes sense and isn't
> something generic (e.g. "java").
> --Adding a StartupWMClass key to the .desktop file if the above can't
> be done (with the value what's actually set as WM_CLASS).
> As you know, none of those are strictly KDE-specific, it's about how
> an app is supposed to announce itself to a Linux desktop.
> By doing the above, I got it to work in Gnome3, but still can't get it
> to work in KDE4.
> Here is an example:
> I have an application called "pet". I placed a file called pet.desktop
> under /usr/share/applications.
> The content of pet.desktop looks like:
> [Desktop Entry]
> When I run "pet" from terminal, the icon shown on the Task manager is
> not my pet icon. Instead it is the general system icon (X with a circle).
> Any suggestion will be highly appreciated!
More information about the kde