[Bug]: Gnome activities launcher triggers notification instead of switching to the app #27257
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#
I am using ubuntu 26.04 with default gnome
- Start the app.
- Switch to another app.
- Launch the activities overview.
- Search for t3 code.
- Select it in the activities overview launcher.
- It triggers a notification stating that t3 code is ready.
- You need to click the notification to switch to t3 code
Expected behavior#
- Start the app.
- Switch to another app.
- Launch the activities overview.
- Search for t3 code.
- Select it in the activities overview launcher.
- Switches to the t3 code app.
Actual behavior#
- Start the app.
- Switch to another app.
- Launch the activities overview.
- Search for t3 code.
- Select it in the activities overview launcher.
- It triggers a notification stating that t3 code is ready.
- You need to click the notification to switch to t3 code
Impact#
Blocks work completely
Version or commit#
No response
Environment#
Ubuntu 26.04
Logs or stack traces#
Screenshots, recordings, or supporting files#
Screenshot From 2026-10-29 17-36-41.png
Workaround#
No response
danielcommesse(GitHub profile, opens in a new tab) added labelsbug
danielcommesse(GitHub profile, opens in a new tab) added labelsneeds-triage
One shot fix
mkdir -p ~/.local/share/applications && \ cp /usr/share/applications/t3code.desktop ~/.local/share/applications/t3code.desktop && \ sed -i 's/^StartupWMClass=.*/StartupWMClass=com.t3tools.T3Code/' ~/.local/share/applications/t3code.desktopThis looks like the same root cause as #13975, which open PR #10895 fixes. The installed
t3code.desktopsaysStartupWMClass=t3code, but the window's class (and Wayland app id) iscom.t3tools.T3Code. I confirmed that value on KDE Plasma Wayland: https://github.com/pingdotgg/t3code/pull/10895#issuecomment-6562045406Because the two don't match, GNOME likely doesn't see the running window as belonging to that launcher. So selecting it starts a new process, which hands off to the running instance, and GNOME shows "T3 Code is ready" instead of switching. Your workaround is the same one-line change #10895 makes.
On KDE Plasma 6.8.2 (Wayland), launching again while T3 Code is running brings the existing window forward with either value, so this symptom seems to be GNOME-specific.
Another confirmation of this root cause, on the
.debwith a different symptom: a duplicate dock icon. The closing note on #13975 said the separate dock entry was still open, and this comment gives fresh evidence for that part.What happened: With T3 Code pinned to the Ubuntu Dock, clicking the pin leaves it in the not-running state. A second T3 Code icon appears after the dock separator, and that's the one holding the running window.
Environment
- T3 Code 0.1.7, installed from the GitHub release
.deb - Ubuntu 26.04.1 LTS, GNOME Shell 50.1, Wayland,
ubuntu-dock@ubuntu.comenabled
Diagnosis
- The packaged
/usr/share/applications/t3code.desktopsetsStartupWMClass=t3code. - The 0.1.7 bundle calls
setDesktopName("com.t3tools.T3Code.desktop")at startup and rewrites a hidden~/.local/share/applications/com.t3tools.T3Code.desktop(NoDisplay=true, noStartupWMClass). On this machine that file's timestamp was one second after process start. mainstill hasStartupWMClass: "t3code"inscripts/build-desktop-artifact.tsand the samesetDesktopNamecall, checked 2026-11-06, so current nightlies should still be affected. I didn't test a nightly.
Workaround confirmed on GNOME: The one-shot fix above resolves the dock symptom too. After a user-level copy of
t3code.desktopwithStartupWMClass=com.t3tools.T3Code, and a full quit and relaunch, the window groups under the existing pin and the extra icon is gone. The pin didn't need to be recreated. I didn't test the Activities notification symptom from this issue.This supports the launcher change in #10895, which is what the workaround does by hand.
Produced with
t3 triageby Claude Code (Claude Opus 5.5), with a human reviewing before posting.- T3 Code 0.1.7, installed from the GitHub release
Fixed by #10895, now on main: With a build containing this merge and its updated desktop launcher installed, selecting T3 Code in GNOME Activities should switch directly to the running window instead of showing a readiness notification: the merge applies the exact StartupWMClass correction the reporter confirmed fixes this behavior.
juliusmarminge closed this
Sign in to join this conversation.
I actually found that replacing
StartupWMClass=t3codetoStartupWMClass=com.t3tools.T3Codein the .desktop file fixes this, now it launches/switches correctly