Skip to content

brew uninstall leaves StableBar running and its changes on the Mac #896

Closed

Description

@M4n0x

What happens

brew uninstall --cask stablebar removes /Applications/StableBar.app and nothing else:

  • a bar that's running keeps running from the deleted app;
  • the macOS menu bar's auto-hide that setup turned on stays on, so the menu bar stays hidden with no bar in its place once StableBar quits;
  • Open at login stays registered in Background Task Management, pointing at the missing app;
  • the Accessibility and Automation permissions stay;
  • /usr/local/bin/stablebar stays, running an app that's gone;
  • the StableBar Keychain items stay.

brew uninstall --zap --cask stablebar also trashes the configuration, caches and preferences, with the same leftovers, and the bar that's still running can write its preferences back.

Steps to reproduce

  1. brew install --cask stablebox/tap/stablebar, open StableBar and finish setup with Replace the menu bar and Open at login.
  2. Install the command from Settings → General → Command line.
  3. brew uninstall --cask stablebar while the bar runs.

Expected

Homebrew leaves the Mac as Settings → General → Uninstall does, and --zap also removes ~/.config/stablebar. An upgrade or a reinstall keeps the permissions, preferences and Open at login.

Environment

  • StableBar 0.18.0 from stablebox/tap, Homebrew 7.0.12
  • macOS 26.6 in a tart VM

Evidence

State before and after brew uninstall --cask stablebar with the bar running (auto-hide on, Open at login on):

==> Uninstalling Cask stablebar
==> Backing up App 'StableBar.app' to '/opt/homebrew/Caskroom/stablebar/0.18.0/StableBar.app'
==> Removing App '/Applications/StableBar.app'
==> Purging files for version 0.18.0 of Cask stablebar

== auto-hide (_HIHideMenuBar): 1
== processes: 490 /Applications/StableBar.app/Contents/MacOS/StableBar
== app: missing
== command: /usr/local/bin/stablebar
== keychain: present
== login item: URL: file:///Applications/StableBar.app/
== TCC (user): kTCCServiceAppleEvents|2
== TCC (system): kTCCServiceAccessibility|2

Diagnosis: the cask in stablebox/homebrew-tap has no uninstall stanza, only zap trash:. Homebrew runs a cask's uninstall stanza for brew upgrade and brew reinstall too, without telling a script which one called it, so the stanza can't simply run StableBar --uninstall --yes: that would reset the permissions and preferences on every upgrade. zap directives run before the app is removed only from Homebrew 7.0.10.

Related

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

Activity

  1. added
    bug
    on Nov 22, 2026
  2. stablebar-releases commented on Nov 25, 2026

    @stablebar-releases

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