In KDE4 it was possible set WM_CLASS to: WM_CLASS = "newname", "newname" by simply creating a link to the executable with the name of the desired class: user@kde:~$ /usr/bin/dolphin4 -v Qt: 4.8.7 Plataforma de desarrollo de KDE: 4.14.16 Dolphin: 14.12.3 user@kde:~$ ln -s /usr/bin/dolphin4 dolphin4-newname user@kde:~$ ./dolphin4-newname & xprop | grep WM_CLASS WM_CLASS(STRING) = "dolphin4-newname", "Dolphin4-newname" This has stopped working in version 15: user@kde:~$ /usr/bin/dolphin -v dolphin 15.12.3 user@kde:~$ ln -s /usr/bin/dolphin dolphin-newname user@kde:~$ /dolphin-newname & xprop | grep WM_CLASS WM_CLASS(STRING) = "dolphin-newname", "dolphin" user@kde:~$ ./dolphin-newname --name dolphin-newname & xprop | grep WM_CLASS WM_CLASS(STRING) = "dolphin-newname", "dolphin" The expected result: WM_CLASS(STRING) = "dolphin-newname", "Dolphin-newname" In other applications such as konsole the result is as expected.
In konsole also does not work: https://bugs.kde.org/show_bug.cgi?id=372441
Does it work with pure Qt5 applications?
(In reply to Christoph Feck from comment #2) > Does it work with pure Qt5 applications? I tried it with "QtCreator" and has the same problem.
Then I suggest to report it the Qt developers via https://bugreports.qt.io/ It does not make sense to patch every application if it could be done centrally in Qt (e.g. xcb platform plugin).