Skip to content

Setup hides the menu bar and finishes without the permissions the bar needs #441

Closed

Description

@M4n0x

What happens

On a fresh setup, StableBar acts before it has the permissions it needs, and fails silently:

  • Replace the menu bar does nothing visible when macOS's Automation dialog doesn't appear or is refused. osascript waits up to two minutes. Each extra click queues another request, and then setup shows "StableBar couldn't hide the macOS menu bar. Allow StableBar in System Settings → Privacy & Security → Automation." twice in the intro, once over the title. Top edge in the placement step and Settings → General → Automatically hide the menu bar behave the same way.
  • Setup finishes without Accessibility, which the app menus, the Apple menu, Menu bar items, window clearance and switching desktops need. Every preset includes app menus and Menu bar items, so the new bar is partly dead until the person finds Allow… in Finishing touches or the warning icon.

Steps to reproduce

  1. Start StableBar 0.11.0 in a new macOS account, where StableBar has no Automation or Accessibility access.
  2. In the intro, click Replace the menu bar. Where macOS can't show its dialog (for example in a Screen Sharing session of another account), nothing happens; click again a few times.
  3. Finish setup without clicking Allow… for Accessibility.

Expected

Setup checks each permission the chosen bar needs before relying on it, and asks for it. When macOS doesn't show its dialog or the person refuses, setup says what to turn on, offers to open that pane in System Settings, and carries on once the permission is allowed, instead of waiting silently and then failing.

Environment

StableBar 0.11.0, macOS 27.2, a new standard account. Seen both in a Screen Sharing session of that account, where macOS can't show any app's consent dialog, and with fast user switching, where it can.

Evidence

In the Screen Sharing session, tccd logged Prompting for access to indirect object System Events by StableBar, and then AccessRequestIndirect: prompt timed out after 0 seconds each time UserNotificationCenter started and quit without showing the dialog. Ghostty's requests for System Events in the same session failed the same way.

Diagnosis

On main (5a9c585):

  • Sources/StableBar/SetupWindow.swift: place(_:) calls MenuBarAutoHide.set (osascript to System Events, 120 s timeout) without checking Automation access first, and doesn't stop a second click while the first waits.
  • Sources/StableBar/SetupTour.swift: the intro question shows session.error, and so does tour(size:), which is laid out during the intro too, so the error appears twice.
  • Sources/StableBar/MenuBarAutoHideSettings.swift: the Settings toggle runs the same command the same way.
  • SetupSession.finish() saves the bar without checking Accessibility, and Calendars when Meetings is chosen; their Allow… buttons in Finishing touches are optional.

Related

Triaged by Claude Code (claude-opus-5-5).

Activity

  1. added
    bug
    on Nov 7, 2026
  2. stablebar-releases commented on Nov 10, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.12.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions