The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 09:30 UTC
refactor(desktop): Drop the unused Linux --class switch (#14482)
Mike Olson committed
Oct 31, 2026 at 22:03 UTC
8473d1560d6f765082de371b10fdeb6d838435ef
4 files changed
-6
apps/desktop/src/app/DesktopEarlyElectronStartup.ts
-2
@@ -26,7 +26,6 @@ type EarlyLinuxElectronOptionsInput = EarlyDesktopSettingsInput;
26
27
export interface EarlyLinuxElectronOptions {
28
readonly isDevelopment: boolean;
29
- readonly linuxWmClass: string;
29
readonly linuxDesktopEntryName: string;
30
readonly passwordStore: LinuxPasswordStoreSwitch | null;
31
}
@@ -146,7 +145,6 @@ export function resolveEarlyLinuxElectronOptions(
145
const isDevelopment = isDevelopmentEnvironment(input.env);
146
return {
147
isDevelopment,
149
- linuxWmClass: isDevelopment ? "t3code-dev" : "t3code",
148
linuxDesktopEntryName: resolveLinuxDesktopEntryName(isDevelopment),
149
passwordStore: resolveLinuxPasswordStoreSwitch({
150
preference,
apps/desktop/src/app/DesktopEnvironment.ts
-2
@@ -75,7 +75,6 @@ export class DesktopEnvironment extends Context.Service<
75
readonly displayName: string;
76
readonly appUserModelId: string;
77
readonly linuxDesktopEntryName: string;
78
- readonly linuxWmClass: string;
78
readonly linuxApplicationsDir: string;
79
readonly desktopLauncherPath: Option.Option<string>;
80
readonly appImagePath: Option.Option<string>;
@@ -232,7 +231,6 @@ const make = Effect.fn("desktop.environment.make")(function* (
231
isDevelopment ? "com.t3tools.t3code.dev" : "com.t3tools.t3code",
232
),
233
linuxDesktopEntryName: resolveLinuxDesktopEntryName(isDevelopment),
235
- linuxWmClass: isDevelopment ? "t3code-dev" : "t3code",
234
linuxApplicationsDir,
235
desktopLauncherPath: config.desktopLauncherPath,
236
appImagePath: config.appImagePath,
apps/desktop/src/app/DesktopLinuxUrlHandler.test.ts
-1
@@ -35,7 +35,6 @@ const makeEnvironment = (path: Path.Path, overrides: Record<string, unknown> = {
35
isDevelopment: false,
36
displayName: "T3 Code (Alpha)",
37
linuxDesktopEntryName: "com.t3tools.T3Code.desktop",
38
- linuxWmClass: "t3code",
38
linuxApplicationsDir: "/home/alice/.local/share/applications",
39
desktopLauncherPath: Option.none(),
40
appImagePath: Option.some("/home/alice/Applications/T3-Code.AppImage"),
apps/desktop/src/app/DesktopPreReadyPlatform.ts
-1
@@ -121,7 +121,6 @@ export const make = Effect.gen(function* () {
121
} catch {}
122
// Chromium caches portal identity; set it before any asynchronous initialization.
123
Electron.app.setDesktopName(linux.linuxDesktopEntryName);
124
- Electron.app.commandLine.appendSwitch("class", linux.linuxWmClass);
124
if (linux.passwordStore !== null && linuxPasswordStoreCommandLine === null) {
125
Electron.app.commandLine.appendSwitch("password-store", linux.passwordStore);
126
}