#13975·t3code

[Bug]: .deb install on Wayland shows a second, generic dock icon

Author: TonybynMp4Created Sep 27, 2026Updated Sep 27, 2026
Labelsbugvia-triage

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

  1. Install T3-Code-<version>-amd64.deb on a Wayland session.
  2. Pin T3 Code to the dock and launch it.

Expected behavior

The running window is grouped under the pinned T3 Code launcher.

Actual behavior

Image

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 .desktop already registers x-scheme-handler/t3code
  • point xdg-mime default at t3code.desktop
  • use the same t3code app id in DesktopSnapShot window matching

I've been shipping this in a fork's .deb builds and can open a PR if it's wanted.