Skip to content

[BUG] Dock icon reappears on reopen despite "Hide from dock" — also blocks the hide-menu-bar-icon workflow (#382) #753

Description

@pingfan-hu

Bug

With "Hide from dock" enabled, if FluidVoice is already running and I click its icon in Applications (or Launchpad/Spotlight), the Dock icon appears — and stays.

To reproduce:

  1. Enable "Hide from dock" in Settings. Confirm no Dock icon.
  2. With FluidVoice still running, open it again from the Applications folder.
  3. The main window opens, and the Dock icon reappears permanently.

Expected: the main window opens; the Dock stays clean.

Root cause (from reading the source): a LaunchServices reopen resets the activation policy to the bundle default (.regular). AppDelegate.swift already handles this for the app's own programmatic reopen path (the comment in requestMainWindowReopenIfNeeded() describes exactly this, and re-applies applyDockVisibilityPolicy() afterward) — but an external reopen (user clicking the app icon) goes through applicationShouldHandleReopen, which never re-applies the policy.

Suggested fix: call applyDockVisibilityPolicy() in applicationShouldHandleReopen (or applicationDidBecomeActive).

Why this matters — the workflow it unlocks (related: #382)

Like the users in #382, I'd love a settings toggle to hide the menu bar icon. Together with this bug fix, that enables the ideal minimal setup:

  • FluidVoice runs with no menu bar icon and no Dock icon — fully invisible, just dictation via hotkeys.
  • On the rare occasion I need settings, I open the app from Applications → the settings window appears, still nothing in the Dock or menu bar.

This reopen bug is a prerequisite: without the fix, reopening the app to reach settings permanently pollutes the Dock, which defeats the purpose of hiding the icons.

Environment: FluidVoice 1.6.6, macOS 26.5.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions