Skip to content

Commit 1d152c3

Browse files
mwolsonjuliusmarmingemaria-rcks
authored
fix(desktop): Group Linux windows under the installed launcher (pingdotgg#10895)
Co-authored-by: Julius Marminge <[email protected]> Co-authored-by: maria-rcks <[email protected]>
1 parent 429c0ac commit 1d152c3

4 files changed

Lines changed: 20 additions & 3 deletions

File tree

‎packaging/aur/t3code-bin/PKGBUILD‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ TryExec=t3code
9494
Terminal=false
9595
Type=Application
9696
Icon=t3code
97-
StartupWMClass=t3code
97+
StartupWMClass=com.t3tools.T3Code
9898
Categories=Development;
9999
MimeType=x-scheme-handler/t3code;
100100
EOF

‎packaging/aur/t3code-nightly-bin/PKGBUILD‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ TryExec=t3code-nightly
9595
Terminal=false
9696
Type=Application
9797
Icon=t3code-nightly
98-
StartupWMClass=t3code
98+
StartupWMClass=com.t3tools.T3Code
9999
Categories=Development;
100100
MimeType=x-scheme-handler/t3code;
101101
EOF

‎scripts/build-desktop-artifact.test.ts‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,22 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
547547
),
548548
);
549549

550+
it.effect("names the Electron window class in the Linux desktop entry", () =>
551+
Effect.gen(function* () {
552+
const linux = yield* createBuildConfig(
553+
"linux",
554+
"AppImage",
555+
"0.0.33",
556+
false,
557+
false,
558+
undefined,
559+
undefined,
560+
);
561+
562+
assert.nestedPropertyVal(linux, "linux.desktop.entry.StartupWMClass", "com.t3tools.T3Code");
563+
}),
564+
);
565+
550566
it.effect("declares Calendar access for hosted commands in macOS builds", () =>
551567
Effect.gen(function* () {
552568
for (const version of ["0.1.0", "0.1.1-nightly.20261019.1"]) {

‎scripts/build-desktop-artifact.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2921,7 +2921,8 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (
29212921
],
29222922
desktop: {
29232923
entry: {
2924-
StartupWMClass: "t3code",
2924+
// Match Electron's WM_CLASS from setDesktopName so docks use this launcher.
2925+
StartupWMClass: "com.t3tools.T3Code",
29252926
},
29262927
},
29272928
};

0 commit comments

Comments
 (0)