KDE Plasma custom panel icons

Hi folks - I am having the darndest time finding out how to fix/customize icons in KDE Plasma. I am using the default from Garuda, but I have some apps that I pin to the taskbar panel and the icons don’t stay once the app is closed.

Icon Closed:
image

Icon Running:
image

I have been searching the web and forums to see how you customize the icon or fix this issue and haven’t come up with anything very helpful. I have tried to find something in the panel configuration and Icons in KDE settings, but those Icons are just Icon packs.

Any pointers or links to how to customize icons/taskbar panel icons?
Ben


KDE Plasma 6.2.5
Kwin (Wayland)
WM Theme (Sweet-Dark)
Theme: Dr460nized
Icons: BeautyLine

Which apps exactly?

This is an app called WinBox that is for Mikrotik Routers. It is not installed via pacman or anything (but I am finding out this may be in there). Even if I install it via pacman and it works, I am curious on how to change an icon in this Garuda/Arch/KDE.

Confirmed, by the way, installing it via pacman allows the icon to stay, but now I am just curious on the icon part…

What’s the package name after being installed via pacman?

winbox

pacman files:

self contained (unzipped):

It seems they might have packaged an icon or something, there is a discussion about icon issue if you look here

EDIT: They also package a .desktop file which on Line 7 points to the icon.

1 Like

Thanks, but the package icon is working. I realized this after my initial post. But if there was not a packaged version, my question is then how do I get icons to not be the question mark. I noticed the same thing if you do a self contained app setup like Cura (3D Printer Slicer). This shows the question mark icon until launched too (Again, I found the package version after).

I bet this is the ticket. Going to try this too.

If you install a different way than a package you may encounter some missing links. I have had that problem with a 3rd party app written in Java. Actually I still have it.

I created a .desktop file for it with an icon I chose but when the app is closed it’s the same question mark. It’s executing a shell script to launch the app, that could be a reason, but I am not sure.

As a workaround I moved the Pinned app to the Applications Menu, it’s 1 more click but the icon shows in there whether the app run or not.

1 Like

This WinBox.desktop file seems to do the trick for me. I can now launch from this and pin the .desktop file to the taskbar and the icon stays!

[Desktop Entry]
Categories=Utility
Comment[en_US]=GUI administration for Mikrotik RouterOS
Comment=GUI administration for Mikrotik RouterOS
Exec=/usr/bin/env --unset=QT_QPA_PLATFORM /opt/WinBox_Linux/WinBox
GenericName[en_US]=
GenericName=
Icon=/opt/WinBox_Linux/assets/img/winbox.png
MimeType=
Name[en_US]=WinBox
Name=WinBox
Path=
PrefersNonDefaultGPU=false
StartupNotify=true
StartupWMClass=WinBox
Terminal=false
TerminalOptions=
Type=Application
Version=1.0
X-KDE-SubstituteUID=false
X-KDE-Username=

Thanks @FGD !!!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.