4.0.1 GTK wayland client has wrong wmclass

Author: jnshCreated Feb 26, 2023Updated Sep 8, 2026
Labelsbughelp wantedscope:gtkpr welcome

What is the issue?

Under Linux/GNOME Wayland desktop, starting the 4.0.1 GTK4 client from GNOME's dash (application launcher) results in the dash not recognizing the application as transmission (not pinning it to the icon it was started from), but as a new program. If I start transmission as X11 application with GDK_BACKEND=x11 transmission-gtk there is no problem. Screenshots hopefully make the above explanation more clear:

GTK4 client started as X11 application: Screenshot from 2023-02-26 19-20-53

GTK4 client started as wayland application: Screenshot from 2023-02-26 19-21-38

Looking at GNOME desktop's looking glass inspector, I can see that the wmclass for the window is transmission-gtk when started in X11 mode, and com.transmissionbt.transmission_66308_1606082 as wayland application. Quick grep reveals that this is coming from gtk/Application.cc#L703.

Which application of Transmission?

GTK+ app on Linux, BSD, etc.

Which version of Transmission?

4.0.1

Source: transmission/transmission