Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
refactor(macos): drop the Show Dock Icon setting, Dock always follows the control panel
Gabriel Steinc99092020143
diff --git a/CLAUDE.md b/CLAUDE.mdindex 5bc4cc362..d49956573 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -62,8 +62,8 @@ OpenWhispr is an Electron-based desktop dictation application that uses whisper.- **debugLogger.js**: Debug logging system with file output- **devServerManager.js**: Vite dev server integration- **dockManager.js**: Single owner of the macOS Dock icon- - Applies the launch activation policy and gates every `app.dock.show()`/`hide()` behind the `SHOW_DOCK_ICON` setting, so no caller can resurrect the icon for a menu-bar-only user- - The icon tracks the control panel: every path that surfaces or hides it (tray, app menu, deep links, `activate`, `ready-to-show`, `hideControlPanelToTray`) reports that state explicitly+ - The icon follows the control panel: it appears when the panel opens and goes away when the panel closes to the tray, so no other caller (in particular the dictation panel's hide path) can resurrect it+ - Every path that surfaces or hides the control panel (tray, app menu, deep links, `activate`, `ready-to-show`, `hideControlPanelToTray`) reports that state explicitly- Never derive that state from the window's `show`/`hide` events: on macOS those are occlusion events, so they also fire when the panel is merely covered by another window, minimized, or on another Space, and the icon flickers as the user switches windows- Decision logic lives in `dockPolicy.js` (pure, unit-tested in `test/helpers/dockPolicy.test.js`)- **dragManager.js**: Window dragging functionalitydiff --git a/main.js b/main.jsindex 1ffc314f7..6b21ddfd0 100644--- a/main.js+++ b/main.js@@ -838,11 +838,6 @@ async function startApp() {}});- ipcMain.on("show-dock-icon-changed", (_event, enabled) => {- environmentManager.saveShowDockIcon(enabled);- dockManager.setShowDockIcon(enabled);- });-ipcMain.on("start-minimized-changed", (_event, enabled) => {if (debugLogger) debugLogger.info("Start minimized changed", { enabled });environmentManager.saveStartMinimized(enabled);@@ -853,7 +848,7 @@ async function startApp() {environmentManager.savePanelStartPosition(position);});- dockManager.init(environmentManager.getShowDockIcon());+ dockManager.init();// In development, wait for Vite dev server to be readyif (process.env.NODE_ENV === "development") {diff --git a/preload.js b/preload.jsindex 67cd4726d..5b2039798 100644--- a/preload.js+++ b/preload.js@@ -763,9 +763,6 @@ contextBridge.exposeInMainWorld("electronAPI", {// Start minimizednotifyStartMinimizedChanged: (enabled) => ipcRenderer.send("start-minimized-changed", enabled),- // Dock icon (macOS)- notifyShowDockIconChanged: (enabled) => ipcRenderer.send("show-dock-icon-changed", enabled),-// Auto-start managementgetAutoStartEnabled: () => ipcRenderer.invoke("get-auto-start-enabled"),setAutoStartEnabled: (enabled) => ipcRenderer.invoke("set-auto-start-enabled", enabled),diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsxindex 9bd7c5d2d..51c885848 100644--- a/src/components/SettingsPage.tsx+++ b/src/components/SettingsPage.tsx@@ -771,8 +771,6 @@ export default function SettingsPage({setFloatingIconAutoHide,startMinimized,setStartMinimized,- showDockIcon,- setShowDockIcon,panelStartPosition,setPanelStartPosition,cloudBackupEnabled,@@ -2726,16 +2724,6 @@ export default function SettingsPage({<Toggle checked={startMinimized} onChange={setStartMinimized} /></SettingsRow></SettingsPanelRow>- {platform === "darwin" && (- <SettingsPanelRow>- <SettingsRow- label={t("settingsPage.general.startup.showDockIcon")}- description={t("settingsPage.general.startup.showDockIconDescription")}- >- <Toggle checked={showDockIcon} onChange={setShowDockIcon} />- </SettingsRow>- </SettingsPanelRow>- )}</SettingsPanel></div>diff --git a/src/helpers/dockManager.js b/src/helpers/dockManager.jsindex 6eea648d0..fcb091bc9 100644--- a/src/helpers/dockManager.js+++ b/src/helpers/dockManager.js@@ -1,37 +1,24 @@const { app } = require("electron");-const { resolveDockVisibility, resolveActivationPolicy } = require("./dockPolicy");+const { resolveDockVisibility } = require("./dockPolicy");// Single owner of the macOS Dock icon. Every caller that wants the icon shown-// or hidden goes through here so the "Show Dock Icon" setting can veto it.+// or hidden goes through here, and the icon simply tracks the control panel.//-// The icon tracks the control panel, and callers report that state explicitly.-// The window's own "show"/"hide" events look like the obvious source to derive-// it from, but on macOS they are occlusion events: Electron only emits them-// from windowDidChangeOcclusionState, so they also fire when the panel is-// merely covered by another window, minimized, or on another Space. Deriving-// from them makes the icon flicker as the user switches windows.+// Callers report that state explicitly. The window's own "show"/"hide" events+// look like the obvious source to derive it from, but on macOS they are+// occlusion events: Electron only emits them from+// windowDidChangeOcclusionState, so they also fire when the panel is merely+// covered by another window, minimized, or on another Space. Deriving from+// them makes the icon flicker as the user switches windows.class DockManager {constructor() {- this._showDockIcon = true;this._controlPanelVisible = false;}- // Applies the launch activation policy. Called once at startup, before any- // window exists, so there is no visibility to apply yet.- init(showDockIcon) {- this._showDockIcon = showDockIcon !== false;+ // Called once at startup, before any window exists: hides the Dock icon+ // until the control panel opens, so tray-only launches never show one.+ init() {this._controlPanelVisible = false;- this._applyActivationPolicy();- }-- // Reacts to the user toggling the setting. Turning it off drops the icon- // immediately; turning it back on restores it if the control panel is open,- // which it must be for the toggle to have been clicked.- setShowDockIcon(enabled) {- this._showDockIcon = enabled !== false;- // "regular" reveals the icon on its own, so the policy has to be applied- // before the visibility check that may hide it again.- this._applyActivationPolicy();this._applyVisibility();}@@ -41,20 +28,9 @@ class DockManager {this._applyVisibility();}- _applyActivationPolicy() {- const policy = resolveActivationPolicy({- platform: process.platform,- showDockIcon: this._showDockIcon,- });- if (policy) {- app.setActivationPolicy(policy);- }- }-_applyVisibility() {const visible = resolveDockVisibility({platform: process.platform,- showDockIcon: this._showDockIcon,controlPanelVisible: this._controlPanelVisible,});if (visible === null || !app.dock) return;diff --git a/src/helpers/dockPolicy.js b/src/helpers/dockPolicy.jsindex 95a567804..7a3702de6 100644--- a/src/helpers/dockPolicy.js+++ b/src/helpers/dockPolicy.js@@ -1,9 +1,8 @@// macOS Dock icon policy.//// The Dock icon follows the control panel: it appears when the control panel-// opens and goes away when the panel is closed to the tray. The user-facing-// "Show Dock Icon" setting overrides that — with it off, OpenWhispr stays a-// menu-bar-only app and no caller may bring the icon back.+// opens and goes away when the panel is closed to the tray, so OpenWhispr+// lives in the menu bar like other background utilities.//// Hiding the dictation panel must never touch the Dock. The panel is hidden// outright rather than minimized into the Dock, so there is nothing to restore@@ -11,15 +10,7 @@// Whether the Dock icon should be visible right now.// Returns null off macOS, where there is no Dock to act on.-export function resolveDockVisibility({ platform, showDockIcon, controlPanelVisible }) {+export function resolveDockVisibility({ platform, controlPanelVisible }) {if (platform !== "darwin") return null;- if (!showDockIcon) return false;return !!controlPanelVisible;}--// The launch activation policy. "accessory" is the runtime equivalent of-// LSUIElement: no Dock icon and no menu bar.-export function resolveActivationPolicy({ platform, showDockIcon }) {- if (platform !== "darwin") return null;- return showDockIcon ? "regular" : "accessory";-}diff --git a/src/helpers/environment.js b/src/helpers/environment.jsindex 614b7773c..579205002 100644--- a/src/helpers/environment.js+++ b/src/helpers/environment.js@@ -44,7 +44,6 @@ const PERSISTED_KEYS = ["FLOATING_ICON_AUTO_HIDE","PANEL_START_POSITION","START_MINIMIZED",- "SHOW_DOCK_ICON","UI_LANGUAGE","WHISPER_CUDA_ENABLED","WHISPER_VULKAN_ENABLED",@@ -476,17 +475,6 @@ class EnvironmentManager {return result;}- // macOS only. Defaults to true so existing installs keep their Dock icon.- getShowDockIcon() {- return this._getKey("SHOW_DOCK_ICON") !== "false";- }-- saveShowDockIcon(enabled) {- const result = this._saveKey("SHOW_DOCK_ICON", String(enabled));- this.saveAllKeysToEnvFile().catch(() => {});- return result;- }-getPanelStartPosition() {const v = this._getKey("PANEL_START_POSITION");if (v === "bottom-right" || v === "center" || v === "bottom-left") return v;diff --git a/src/hooks/useSettings.ts b/src/hooks/useSettings.tsindex c4ba64f08..19530a65c 100644--- a/src/hooks/useSettings.ts+++ b/src/hooks/useSettings.ts@@ -321,8 +321,6 @@ function useSettingsInternal() {setFloatingIconAutoHide: store.setFloatingIconAutoHide,startMinimized: store.startMinimized,setStartMinimized: store.setStartMinimized,- showDockIcon: store.showDockIcon,- setShowDockIcon: store.setShowDockIcon,panelStartPosition: store.panelStartPosition,setPanelStartPosition: store.setPanelStartPosition,preferBuiltInMic: store.preferBuiltInMic,diff --git a/src/locales/de/translation.json b/src/locales/de/translation.jsonindex 14561653c..29aa542ef 100644--- a/src/locales/de/translation.json+++ b/src/locales/de/translation.json@@ -1484,9 +1484,7 @@"title": "Autostart","description": "Steuern Sie das Verhalten von OpenWhispr beim Start","startMinimized": "Minimiert starten",- "startMinimizedDescription": "Starten, ohne das Einstellungsfenster anzuzeigen",- "showDockIcon": "Dock-Symbol anzeigen",- "showDockIconDescription": "OpenWhispr im Dock behalten. Deaktivieren, um nur in der Menüleiste zu laufen."+ "startMinimizedDescription": "Starten, ohne das Einstellungsfenster anzuzeigen"},"waylandPaste": {"title": "Wayland-Einfügen einrichten",diff --git a/src/locales/en/translation.json b/src/locales/en/translation.jsonindex b23da2f67..6c2ce61c6 100644--- a/src/locales/en/translation.json+++ b/src/locales/en/translation.json@@ -1657,9 +1657,7 @@"title": "Startup","description": "Control how OpenWhispr behaves when it launches","startMinimized": "Start minimized",- "startMinimizedDescription": "Launch without showing the control panel window",- "showDockIcon": "Show Dock icon",- "showDockIconDescription": "Keep OpenWhispr in the Dock. Turn off to run from the menu bar only."+ "startMinimizedDescription": "Launch without showing the control panel window"},"waylandPaste": {"title": "Wayland Paste Setup",diff --git a/src/locales/es/translation.json b/src/locales/es/translation.jsonindex 9d2b3c22d..3a53b2cf8 100644--- a/src/locales/es/translation.json+++ b/src/locales/es/translation.json@@ -1532,9 +1532,7 @@"title": "Inicio","description": "Controla el comportamiento de OpenWhispr al iniciar","startMinimized": "Iniciar minimizado",- "startMinimizedDescription": "Iniciar sin mostrar la ventana del panel de control",- "showDockIcon": "Mostrar icono en el Dock",- "showDockIconDescription": "Mantener OpenWhispr en el Dock. Desactívalo para usarlo solo desde la barra de menús."+ "startMinimizedDescription": "Iniciar sin mostrar la ventana del panel de control"},"waylandPaste": {"title": "Configuración de pegado en Wayland",diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.jsonindex fa3541649..6d17bbb0e 100644--- a/src/locales/fr/translation.json+++ b/src/locales/fr/translation.json@@ -1532,9 +1532,7 @@"title": "Démarrage","description": "Contrôlez le comportement d'OpenWhispr au lancement","startMinimized": "Démarrer réduit",- "startMinimizedDescription": "Lancer sans afficher la fenêtre du panneau de contrôle",- "showDockIcon": "Afficher l'icône dans le Dock",- "showDockIconDescription": "Garder OpenWhispr dans le Dock. Désactivez pour l'utiliser uniquement depuis la barre des menus."+ "startMinimizedDescription": "Lancer sans afficher la fenêtre du panneau de contrôle"},"waylandPaste": {"title": "Configuration du collage Wayland",diff --git a/src/locales/it/translation.json b/src/locales/it/translation.jsonindex 6c4dc2600..69bcc1b9f 100644--- a/src/locales/it/translation.json+++ b/src/locales/it/translation.json@@ -1484,9 +1484,7 @@"title": "Avvio","description": "Controlla il comportamento di OpenWhispr all'avvio","startMinimized": "Avvia ridotto a icona",- "startMinimizedDescription": "Avvia senza mostrare la finestra del pannello di controllo",- "showDockIcon": "Mostra icona nel Dock",- "showDockIconDescription": "Mantieni OpenWhispr nel Dock. Disattiva per usarlo solo dalla barra dei menu."+ "startMinimizedDescription": "Avvia senza mostrare la finestra del pannello di controllo"},"waylandPaste": {"title": "Configurazione incolla su Wayland",diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.jsonindex f2e7b63c6..ec71459d8 100644--- a/src/locales/ja/translation.json+++ b/src/locales/ja/translation.json@@ -1484,9 +1484,7 @@"title": "起動設定","description": "OpenWhispr の起動時の動作を制御","startMinimized": "最小化で起動",- "startMinimizedDescription": "コントロールパネルウィンドウを表示せずに起動",- "showDockIcon": "Dock アイコンを表示",- "showDockIconDescription": "OpenWhispr を Dock に表示します。オフにするとメニューバーのみで動作します。"+ "startMinimizedDescription": "コントロールパネルウィンドウを表示せずに起動"},"waylandPaste": {"title": "Wayland 貼り付け設定",diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.jsonindex 216ed3bfc..44757a301 100644--- a/src/locales/pt/translation.json+++ b/src/locales/pt/translation.json@@ -1463,9 +1463,7 @@"title": "Inicialização","description": "Controle o comportamento do OpenWhispr ao iniciar","startMinimized": "Iniciar minimizado",- "startMinimizedDescription": "Iniciar sem mostrar a janela do painel de controle",- "showDockIcon": "Mostrar ícone no Dock",- "showDockIconDescription": "Manter o OpenWhispr no Dock. Desative para usar apenas na barra de menus."+ "startMinimizedDescription": "Iniciar sem mostrar a janela do painel de controle"},"waylandPaste": {"title": "Configuração de colagem no Wayland",diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.jsonindex b68ed8b5d..e6100b76a 100644--- a/src/locales/ru/translation.json+++ b/src/locales/ru/translation.json@@ -1484,9 +1484,7 @@"title": "Автозапуск","description": "Управляйте поведением OpenWhispr при запуске","startMinimized": "Запуск в свёрнутом виде",- "startMinimizedDescription": "Запускать без отображения окна панели управления",- "showDockIcon": "Показывать значок в Dock",- "showDockIconDescription": "Оставлять OpenWhispr в Dock. Отключите, чтобы работать только из строки меню."+ "startMinimizedDescription": "Запускать без отображения окна панели управления"},"waylandPaste": {"title": "Настройка вставки в Wayland",diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.jsonindex 5bf5a9801..e860d4352 100644--- a/src/locales/zh-CN/translation.json+++ b/src/locales/zh-CN/translation.json@@ -1217,7 +1217,12 @@"annualEquivalent": "$16.67","includesPrefix": "所有 Pro 功能 +","badge": "最受欢迎",- "features": ["无限会议录制", "代理模式", "与您的数据对话", "优先支持"],+ "features": [+ "无限会议录制",+ "代理模式",+ "与您的数据对话",+ "优先支持"+ ],"cta": "开始使用","switchToAnnual": "切换为年付"},@@ -1479,9 +1484,7 @@"title": "启动","description": "控制 OpenWhispr 启动时的行为","startMinimized": "启动时最小化",- "startMinimizedDescription": "启动时不显示控制面板窗口",- "showDockIcon": "显示程序坞图标",- "showDockIconDescription": "在程序坞中保留 OpenWhispr。关闭后仅在菜单栏中运行。"+ "startMinimizedDescription": "启动时不显示控制面板窗口"},"waylandPaste": {"title": "Wayland 粘贴设置",diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.jsonindex 2789c8193..caa2a2599 100644--- a/src/locales/zh-TW/translation.json+++ b/src/locales/zh-TW/translation.json@@ -1217,7 +1217,12 @@"annualEquivalent": "$16.67","includesPrefix": "所有 Pro 功能 +","badge": "最熱門",- "features": ["無限會議錄製", "代理模式", "與您的資料對話", "優先支援"],+ "features": [+ "無限會議錄製",+ "代理模式",+ "與您的資料對話",+ "優先支援"+ ],"cta": "開始使用","switchToAnnual": "切換為年付"},@@ -1479,9 +1484,7 @@"title": "啟動","description": "控制 OpenWhispr 啟動時的行為","startMinimized": "啟動時最小化",- "startMinimizedDescription": "啟動時不顯示控制面板視窗",- "showDockIcon": "顯示 Dock 圖示",- "showDockIconDescription": "在 Dock 中保留 OpenWhispr。關閉後僅在選單列中執行。"+ "startMinimizedDescription": "啟動時不顯示控制面板視窗"},"waylandPaste": {"title": "Wayland 貼上設定",diff --git a/src/stores/settingsStore.ts b/src/stores/settingsStore.tsindex c9b67e172..1b957d13f 100644--- a/src/stores/settingsStore.ts+++ b/src/stores/settingsStore.ts@@ -123,7 +123,6 @@ const BOOLEAN_SETTINGS = new Set(["pauseMediaOnDictation","floatingIconAutoHide","startMinimized",- "showDockIcon","meetingProcessDetection","speakerDiarizationEnabled","dictationSileroEnabled",@@ -413,7 +412,6 @@ export interface SettingsStatepauseMediaOnDictation: boolean;floatingIconAutoHide: boolean;startMinimized: boolean;- showDockIcon: boolean;gcalAccounts: GoogleCalendarAccount[];gcalConnected: boolean;gcalEmail: string;@@ -668,7 +666,6 @@ export interface SettingsStatesetPauseMediaOnDictation: (value: boolean) => void;setFloatingIconAutoHide: (enabled: boolean) => void;setStartMinimized: (enabled: boolean) => void;- setShowDockIcon: (enabled: boolean) => void;setGcalAccounts: (accounts: GoogleCalendarAccount[]) => void;setNotificationsEnabled: (value: boolean) => void;setNotifyMeetingDetection: (value: boolean) => void;@@ -1013,7 +1010,6 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({pauseMediaOnDictation: readBoolean("pauseMediaOnDictation", false),floatingIconAutoHide: readBoolean("floatingIconAutoHide", false),startMinimized: readBoolean("startMinimized", false),- showDockIcon: readBoolean("showDockIcon", true),notificationsEnabled: readBoolean("notificationsEnabled", true),notifyMeetingDetection: readBoolean("notifyMeetingDetection", true),notifyCalendarReminders: readBoolean("notifyCalendarReminders", true),@@ -1614,15 +1610,6 @@ export const useSettingsStore = create<SettingsState>()((set, get) => ({}},- setShowDockIcon: (enabled: boolean) => {- if (get().showDockIcon === enabled) return;- if (isBrowser) localStorage.setItem("showDockIcon", String(enabled));- set({ showDockIcon: enabled });- if (isBrowser) {- window.electronAPI?.notifyShowDockIconChanged?.(enabled);- }- },-setGcalAccounts: (accounts: GoogleCalendarAccount[]) => {if (isBrowser) localStorage.setItem("gcalAccounts", JSON.stringify(accounts));useSettingsStore.setState({diff --git a/src/types/electron.ts b/src/types/electron.tsindex d20acf693..b639ad56f 100644--- a/src/types/electron.ts+++ b/src/types/electron.ts@@ -1212,7 +1212,6 @@ declare global {notifyFloatingIconAutoHideChanged?: (enabled: boolean) => void;onFloatingIconAutoHideChanged?: (callback: (enabled: boolean) => void) => () => void;notifyStartMinimizedChanged?: (enabled: boolean) => void;- notifyShowDockIconChanged?: (enabled: boolean) => void;notifyPanelStartPositionChanged?: (position: string) => void;// Auto-start at logindiff --git a/test/helpers/dockPolicy.test.js b/test/helpers/dockPolicy.test.jsindex 42619f7c6..3b216f88c 100644--- a/test/helpers/dockPolicy.test.js+++ b/test/helpers/dockPolicy.test.js@@ -3,41 +3,11 @@ const assert = require("node:assert/strict");const load = () => import("../../src/helpers/dockPolicy.js");-test("the Dock icon follows the control panel when the setting is on", async () => {+test("the Dock icon follows the control panel", async () => {const { resolveDockVisibility } = await load();- assert.equal(- resolveDockVisibility({ platform: "darwin", showDockIcon: true, controlPanelVisible: true }),- true- );- assert.equal(- resolveDockVisibility({ platform: "darwin", showDockIcon: true, controlPanelVisible: false }),- false- );-});--test("the setting overrides an open control panel", async () => {- const { resolveDockVisibility } = await load();-- // Opening the control panel from the tray or clicking the Dock icon would- // normally surface the icon; with the setting off the app stays menu-bar-only.- assert.equal(- resolveDockVisibility({ platform: "darwin", showDockIcon: false, controlPanelVisible: true }),- false- );-});--test("re-enabling the setting with the control panel open restores the icon", async () => {- const { resolveDockVisibility } = await load();-- // The toggle lives in the control panel, so the panel is open whenever the- // setting can be switched back on and the icon must come back. This holds- // only as long as every path that surfaces the panel reports it, including- // the one that reuses an already-created window.- assert.equal(- resolveDockVisibility({ platform: "darwin", showDockIcon: true, controlPanelVisible: true }),- true- );+ assert.equal(resolveDockVisibility({ platform: "darwin", controlPanelVisible: true }), true);+ assert.equal(resolveDockVisibility({ platform: "darwin", controlPanelVisible: false }), false);});test("hiding the dictation panel cannot resurrect the Dock icon", async () => {@@ -47,29 +17,13 @@ test("hiding the dictation panel cannot resurrect the Dock icon", async () => {// dictation with an app.dock.show(), a leftover from when the macOS branch// minimized the panel into the Dock instead of hiding it. The dictation panel// is not the control panel, so it cannot affect the icon either way.- const dockHiddenByClosingControlPanel = {- platform: "darwin",- showDockIcon: true,- controlPanelVisible: false,- };- assert.equal(resolveDockVisibility(dockHiddenByClosingControlPanel), false);+ assert.equal(resolveDockVisibility({ platform: "darwin", controlPanelVisible: false }), false);});test("there is no Dock to act on outside macOS", async () => {- const { resolveDockVisibility, resolveActivationPolicy } = await load();+ const { resolveDockVisibility } = await load();for (const platform of ["win32", "linux"]) {- assert.equal(- resolveDockVisibility({ platform, showDockIcon: true, controlPanelVisible: true }),- null- );- assert.equal(resolveActivationPolicy({ platform, showDockIcon: true }), null);+ assert.equal(resolveDockVisibility({ platform, controlPanelVisible: true }), null);}});--test("activation policy mirrors the setting", async () => {- const { resolveActivationPolicy } = await load();-- assert.equal(resolveActivationPolicy({ platform: "darwin", showDockIcon: true }), "regular");- assert.equal(resolveActivationPolicy({ platform: "darwin", showDockIcon: false }), "accessory");-});