SUMMARY After upgrading kwin from 5.19.5 to 5.20.0, many windows' icons in task switcher and window decoration became a game's. The game is installed via Steam, and I got at least another report of this problem in a local group. The corresponding icon in plasma taskbar is not affected, though. I have tried to revert https://github.com/KDE/kwin/commit/7ea7aa1ee901921ca4f15e35e07ca8247af7e95b manually (having some conflicts) and the problem goes away. STEPS TO REPRODUCE Not exactly sure why was the wrong icon chosen in the new codepath, so I am currently unable to provide a way to reproduce. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux x86_64, Plasma 5.20.0 (available in About System) KDE Plasma Version: 5.20.0 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.1
Turns out the wrong icon comes from /home/<username>/.local/share/applications/.desktop which should be generated by steam. Unfortunately steam is not open sourced. I guess kwin should add some guards against choosing this file as the application name is effectively empty?
Are you able to mention which game causes this to happen when it's running?
(In reply to Nate Graham from comment #2) > Are you able to mention which game causes this to happen when it's running? The offending game here is "中国式家长" (or "Chinese Parents" in English). The desktop file should be generated by steam itself on installation (there is a checkbox to add it to "Start Menu"). I suspect that it has something to do with the non-ascii characters here.
Interesting. Definitely seems like it could be related.
Is the issue in libtaskmanager or kwin?
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/431
@Felix, would you be able to test the MR above?
I can confirm that the MR fixes the issue here. Many thanks!
Git commit a92ce693ec7646cb296e9d16ec8cf9cca8121486 by Aleix Pol Gonzalez, on behalf of Aleix Pol. Committed on 07/11/2020 at 03:17. Pushed by apol into branch 'master'. Restore empty filename check Otherwise we could end up matching with a weird ".../.desktop" entry. M +4 -0 abstract_client.cpp https://invent.kde.org/plasma/kwin/commit/a92ce693ec7646cb296e9d16ec8cf9cca8121486
Git commit 0b5cbe4016bc69e4f15e437838983beacae3eab8 by Aleix Pol Gonzalez, on behalf of Aleix Pol. Committed on 07/11/2020 at 03:19. Pushed by apol into branch 'Plasma/5.20'. Restore empty filename check Otherwise we could end up matching with a weird ".../.desktop" entry. (cherry picked from commit a92ce693ec7646cb296e9d16ec8cf9cca8121486) M +4 -0 abstract_client.cpp https://invent.kde.org/plasma/kwin/commit/0b5cbe4016bc69e4f15e437838983beacae3eab8