Repository navigation
Description
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
- Install a signed release on a Mac where StableBar has never had Automation access.
- 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:
Resources/StableBar.entitlementsholds only the calendars entitlement.Resources/Info.plisthasNSAppleEventsUsageDescription. With the hardened runtime, macOS also needs the entitlement before it prompts.- Sources/StableBar/SetupWindow.swift:194-199 runs
/usr/bin/osascript. - Sources/StableBar/SetupWindow.swift:190 shows the failure with the raw error.
Proposal
Add com.apple.security.automation.apple-events to Resources/StableBar.entitlements. If the call still fails, say where to allow it.
Related
- Developer ID releases can't get Calendars access: the app is signed without the calendars entitlement #111 is the same hardened-runtime gap for Calendars, fixed in fix: allow calendar access in Developer ID releases #112.
- Setup hides a new bar behind a visible macOS menu bar #195 and feat: lead setup to replace the macOS menu bar #198 added the menu bar hiding.
Triaged by Claude Code via T3 Code (Claude Opus 5.5).
Activity
stablebar-releases commentedon Oct 23, 2026
🎉 This issue has been resolved in version 0.6.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀