Skip to content

Signed releases may be refused when setup hides the macOS menu bar #207

Closed

Description

@Seb-GRAF

What happens

Setup hides the macOS menu bar by running osascript to tell System Events to set autohide menu bar. Signed releases use the hardened runtime but lack the com.apple.security.automation.apple-events entitlement. Without it, macOS usually refuses the Apple Event with error -1743 and shows no prompt, the way it refused Calendars in #111.

If that happens, Replace the menu bar and Top edge fail with "StableBar couldn't hide the macOS menu bar." followed by the raw osascript error. Nothing points to System Settings → Privacy & Security → Automation.

Script widgets that run osascript are StableBar's child processes, so they may be refused the same way.

Steps to reproduce

  1. Install a signed release on a Mac where StableBar has never had Automation access.
  2. Run setup with the macOS menu bar visible and choose Replace the menu bar.

Expected

macOS asks once to let StableBar control System Events, and the menu bar hides.

Environment

Installed release 0.6.0-beta.20261022113039.282 (Developer ID, team 278M87RK3R).

Evidence

Not reproduced: this needs a run of the signed release. swift build dev builds aren't hardened, so they can't show it.

codesign -dv /Applications/StableBar.app shows flags=0x10000(runtime), and codesign -d --entitlements - lists only com.apple.security.personal-information.calendars.

Diagnosis

Read on main at 4160f7f:

Proposal

Add com.apple.security.automation.apple-events to Resources/StableBar.entitlements. If the call still fails, say where to allow it.

Related

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Oct 22, 2026
  2. stablebar-releases commented on Oct 23, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.6.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