Skip to content

Uninstall StableBar and put back the macOS settings it changed #332

Closed

Description

@M4n0x

Problem

StableBar has no way to remove itself. Dragging the app to the Trash, or brew uninstall --zap --cask stablebar, leaves behind changes the user may not know StableBar made:

  • The macOS menu bar's auto-hide. Setup turns it on for Top edge, Replace the menu bar and the Notch preset (Sources/StableBar/SetupWindow.swift:196). After StableBar is gone, the menu bar keeps hiding. Turn the macOS menu bar's auto-hide back off outside setup #210 covers turning it off from Settings.
  • Launch at login. The SMAppService registration stays unless Launch at login was turned off first.
  • The stablebar command that Settings → General → Command line writes to /usr/local/bin. Settings can install it but not remove it (Sources/StableBar/CommandLineTool.swift).
  • Package secrets in the Keychain, under the service StableBar (Sources/StableBar/PackageSecrets.swift).
  • Permissions: Accessibility, Calendars and Automation (System Events).
  • Files: ~/.config/stablebar (configuration and packages), ~/Library/Caches/org.stablebar.app, ~/Library/Caches/org.stablebar.app.sparkle, ~/Library/Caches/StableBar, ~/Library/HTTPStorages/org.stablebar.app and ~/Library/Preferences/org.stablebar.app.plist. The cask's zap removes these.

The guide explains how to install StableBar from the DMG or with Homebrew, but not how to remove it. An app can't run code when it's dragged to the Trash, so only StableBar itself can undo its changes before it goes.

Proposal

  • Remember the menu bar setting before setup changes it. Setup keeps it only in memory (menuBarHidAtStart, SetupWindow.swift:128), so after Finish setup nothing can restore it. Save it in StableBar's preferences the first time setup changes it, and keep that first value when setup runs again.
  • Uninstall StableBar… in Settings → General, also found by Settings search. A confirmation lists what it does, then it:
    • sets the menu bar's auto-hide back to the saved value, only when StableBar changed it;
    • turns off launch at login;
    • removes the stablebar command when it's StableBar's script (macOS asks for an administrator password);
    • deletes the StableBar Keychain items;
    • offers to move ~/.config/stablebar to the Trash, off by default, because it holds the configuration and packages;
    • lists the permissions to remove in System Settings → Privacy & Security;
    • removes caches and preferences, moves the app to the Trash and quits. When Homebrew installed the app, it says to finish with brew uninstall --cask stablebar instead.
  • Not on quit. Restoring the menu bar on every quit would flip a system setting on restarts, updates and logouts, and would undo the choice of users who hid the menu bar before StableBar.
  • Guide. An "Uninstall" section in docs/getting-started.md with the action and the manual steps. Fix line 33, which says StableBar doesn't change macOS menu-bar settings.

Not verified: macOS's setting offers Always, On Desktop Only, In Full Screen Only and Never, but setup reads and writes a yes/no (_HIHideMenuBar). Saving and restoring should be checked against each choice.

Possible today

Partly, by hand: turn off Launch at login and quit StableBar, then run brew uninstall --zap --cask stablebar or delete the app and the files above. Run sudo rm /usr/local/bin/stablebar and security delete-generic-password -s StableBar until no item is left. Turn off Automatically hide and show the menu bar in System Settings → Menu Bar, and run tccutil reset All org.stablebar.app. The menu bar setting from before setup can't be recovered.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    documentation
    enhancement
    on Oct 26, 2026
  2. stablebar-releases commented on Oct 29, 2026

    @stablebar-releases

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

    documentationenhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions