How does the kde dock figure out steam game icons?

Hello!

I hope this is the right place to ask this, a bit unrelated but I want to write a dock for a window manager, and I am curious how the kde dock/panel/taskbar (not really sure what it is called exactly) figure’s out steam game icons. The only way I would know of right now would be: window class → .desktop file → icon name, but that would not work for steam games

and I was suprised that kde dock finds the steam_app_* games, as well as for example counter strike source with cstrike_linux64 as it’s class

maybe someone can point me to the source code of this panel so I can look at it myself? I tried searching in the invent.kde repositories but unfortunatly I don’t know what project scope this would be under:

I hope someone can point me in the right directions, thanks anyways!

Hi! I am 100% not a developer - but just based on where I’ve seen commits occur that relate to Task Manager icon handling, I think these are at least the bits of code involved. Hopefully others with more knowledge can help further :slight_smile:

2 Likes

Thanks! This seems exactly to be what I was looking for, I suppose I can print debug my way through the qt and kde stuff I’m unfamiliar when I read more documentation on how to debug this, to get to what I want to know from there :slight_smile:

1 Like