Skip to content

Hide Dock Icon #545

@abd3lraouf

Description

@abd3lraouf

Problem

It would be useful to have an option to hide the app's dock icon, similar to other menu bar apps.

Use Case

Users who prefer to run OpenUsage exclusively as a menu bar app may not want it to appear in the dock, reducing clutter.

Proposed Solution

  • Add a toggle in Settings (e.g. "Hide dock icon")
  • When enabled, the app runs as a menu bar-only app (NSApp.setActivationPolicy(.accessory))
  • The setting should persist across restarts

Alternatives Considered

No response

Additional Context

On macOS this can be achieved by calling NSApp.setActivationPolicy(.accessory) at launch when the preference is enabled, or dynamically at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions