diff --git a/packaging/aur/t3code-bin/PKGBUILD b/packaging/aur/t3code-bin/PKGBUILD index c5219666bf08..2efc7fdc00f7 100644 --- a/packaging/aur/t3code-bin/PKGBUILD +++ b/packaging/aur/t3code-bin/PKGBUILD @@ -94,7 +94,7 @@ TryExec=t3code Terminal=false Type=Application Icon=t3code -StartupWMClass=t3code +StartupWMClass=com.t3tools.T3Code Categories=Development; MimeType=x-scheme-handler/t3code; EOF diff --git a/packaging/aur/t3code-nightly-bin/PKGBUILD b/packaging/aur/t3code-nightly-bin/PKGBUILD index f3b61c7d5223..fbe560175e4f 100644 --- a/packaging/aur/t3code-nightly-bin/PKGBUILD +++ b/packaging/aur/t3code-nightly-bin/PKGBUILD @@ -95,7 +95,7 @@ TryExec=t3code-nightly Terminal=false Type=Application Icon=t3code-nightly -StartupWMClass=t3code +StartupWMClass=com.t3tools.T3Code Categories=Development; MimeType=x-scheme-handler/t3code; EOF diff --git a/scripts/build-desktop-artifact.test.ts b/scripts/build-desktop-artifact.test.ts index aa733d531631..386d428ab509 100644 --- a/scripts/build-desktop-artifact.test.ts +++ b/scripts/build-desktop-artifact.test.ts @@ -684,6 +684,9 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => { assert.deepStrictEqual((linux.linux as Record).protocols, [ { name: "T3 Code", schemes: ["t3code", "t3code-dev"] }, ]); + assert.deepStrictEqual((linux.linux as Record).desktop, { + entry: { StartupWMClass: "com.t3tools.T3Code" }, + }); assert.deepStrictEqual(mac.files, [...DESKTOP_FILE_EXCLUSIONS, ...MAC_FILE_EXCLUSIONS]); assert.deepStrictEqual(linux.files, [...DESKTOP_FILE_EXCLUSIONS, ...LINUX_FILE_EXCLUSIONS]); assert.deepStrictEqual(win.files, DESKTOP_FILE_EXCLUSIONS); diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.ts index f8f5a6ca2d52..f6de9dbfdd1f 100644 --- a/scripts/build-desktop-artifact.ts +++ b/scripts/build-desktop-artifact.ts @@ -2785,7 +2785,9 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* ( ], desktop: { entry: { - StartupWMClass: "t3code", + // Matches the app id from setDesktopName, so docks group the running + // window under this launcher rather than the hidden URL handler. + StartupWMClass: "com.t3tools.T3Code", }, }, };