TypeScript
refactor(desktop): Drop the unused Linux --class switch (#14482)
Mike Olson8473d1560d6f
diff --git a/apps/desktop/src/app/DesktopEarlyElectronStartup.ts b/apps/desktop/src/app/DesktopEarlyElectronStartup.tsindex 00a355bf496..3c571bcf02b 100644--- a/apps/desktop/src/app/DesktopEarlyElectronStartup.ts+++ b/apps/desktop/src/app/DesktopEarlyElectronStartup.ts@@ -26,7 +26,6 @@ type EarlyLinuxElectronOptionsInput = EarlyDesktopSettingsInput;export interface EarlyLinuxElectronOptions {readonly isDevelopment: boolean;- readonly linuxWmClass: string;readonly linuxDesktopEntryName: string;readonly passwordStore: LinuxPasswordStoreSwitch | null;}@@ -146,7 +145,6 @@ export function resolveEarlyLinuxElectronOptions(const isDevelopment = isDevelopmentEnvironment(input.env);return {isDevelopment,- linuxWmClass: isDevelopment ? "t3code-dev" : "t3code",linuxDesktopEntryName: resolveLinuxDesktopEntryName(isDevelopment),passwordStore: resolveLinuxPasswordStoreSwitch({preference,diff --git a/apps/desktop/src/app/DesktopEnvironment.ts b/apps/desktop/src/app/DesktopEnvironment.tsindex 1066198b8f6..d5fed4b228b 100644--- a/apps/desktop/src/app/DesktopEnvironment.ts+++ b/apps/desktop/src/app/DesktopEnvironment.ts@@ -75,7 +75,6 @@ export class DesktopEnvironment extends Context.Service<readonly displayName: string;readonly appUserModelId: string;readonly linuxDesktopEntryName: string;- readonly linuxWmClass: string;readonly linuxApplicationsDir: string;readonly desktopLauncherPath: Option.Option<string>;readonly appImagePath: Option.Option<string>;@@ -232,7 +231,6 @@ const make = Effect.fn("desktop.environment.make")(function* (isDevelopment ? "com.t3tools.t3code.dev" : "com.t3tools.t3code",),linuxDesktopEntryName: resolveLinuxDesktopEntryName(isDevelopment),- linuxWmClass: isDevelopment ? "t3code-dev" : "t3code",linuxApplicationsDir,desktopLauncherPath: config.desktopLauncherPath,appImagePath: config.appImagePath,diff --git a/apps/desktop/src/app/DesktopLinuxUrlHandler.test.ts b/apps/desktop/src/app/DesktopLinuxUrlHandler.test.tsindex 9404b0ac308..bfc78a834f7 100644--- a/apps/desktop/src/app/DesktopLinuxUrlHandler.test.ts+++ b/apps/desktop/src/app/DesktopLinuxUrlHandler.test.ts@@ -35,7 +35,6 @@ const makeEnvironment = (path: Path.Path, overrides: Record<string, unknown> = {isDevelopment: false,displayName: "T3 Code (Alpha)",linuxDesktopEntryName: "com.t3tools.T3Code.desktop",- linuxWmClass: "t3code",linuxApplicationsDir: "/home/alice/.local/share/applications",desktopLauncherPath: Option.none(),appImagePath: Option.some("/home/alice/Applications/T3-Code.AppImage"),diff --git a/apps/desktop/src/app/DesktopPreReadyPlatform.ts b/apps/desktop/src/app/DesktopPreReadyPlatform.tsindex 8bef7366e37..d77544f54b6 100644--- a/apps/desktop/src/app/DesktopPreReadyPlatform.ts+++ b/apps/desktop/src/app/DesktopPreReadyPlatform.ts@@ -121,7 +121,6 @@ export const make = Effect.gen(function* () {} catch {}// Chromium caches portal identity; set it before any asynchronous initialization.Electron.app.setDesktopName(linux.linuxDesktopEntryName);- Electron.app.commandLine.appendSwitch("class", linux.linuxWmClass);if (linux.passwordStore !== null && linuxPasswordStoreCommandLine === null) {Electron.app.commandLine.appendSwitch("password-store", linux.passwordStore);}