[Bug]: .deb install on Wayland shows a second, generic dock icon
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
- Install
T3-Code-<version>-amd64.debon a Wayland session. - Pin T3 Code to the dock and launch it.
Expected behavior
The running window is grouped under the pinned T3 Code launcher.
Actual behavior
A second dock entry with a generic cog icon appears next to the pinned launcher.
The package installs /usr/share/applications/t3code.desktop with Icon=t3code and StartupWMClass=t3code. At startup the app still calls setDesktopName("com.t3tools.T3Code.desktop") (DesktopPreReadyPlatform.ts) and writes a hidden handler entry to ~/.local/share/applications with NoDisplay=true and no Icon=. On Wayland the compositor matches the window by its app id, so it picks that hidden entry over the installed launcher. X11 is unaffected because it matches on WM_CLASS.
Impact
Cosmetic issue
Version or commit
0.0.43-nightly.20260927.2344 (.deb)
Environment
Ubuntu 26.04.1 LTS, GNOME Shell 50.1, Wayland
Related
#10894 has the same setDesktopName root cause on the AppImage. The fix is different here: the .deb installs a real launcher the app can use, while the AppImage has none.
Possible fix
For packaged installs that aren't an AppImage (app.isPackaged && !process.env.APPIMAGE), leaving the AppImage and dev paths as they are:
- set the desktop name to
t3code.desktop, so the app id matches the installed launcher - skip writing the hidden handler entry, since the installed
.desktopalready registersx-scheme-handler/t3code - point
xdg-mime defaultatt3code.desktop - use the same
t3codeapp id inDesktopSnapShotwindow matching
I've been shipping this in a fork's .deb builds and can open a PR if it's wanted.
Source: pingdotgg/t3code