Skip to content

Settings opens on its own when StableBar starts at login #825

Open

Description

@M4n0x

What happens

When StableBar opens at login, the Settings window opens too, without anyone asking for it.

Steps to reproduce

  1. Turn on Open at login in Settings → General.
  2. Log out and back in, or restart the Mac.
  3. Settings opens next to the bar.

Not yet reproduced on a clean account. The reporter sees it at login.

Expected

At login, StableBar starts with only the bar. Settings opens only when asked: from the menu-bar icon, the bar's right-click menu, a StableBar widget, by reopening the running app, or with StableBar --customize.

Environment

  • StableBar from the beta track (installed now: 0.18.0 beta, build 1362)
  • macOS 27.2.1
  • Open at login on; Reopen windows when logging back in off; setup completed

Evidence

None captured: macOS's log no longer covers the last login.

Diagnosis

On main (6398679), these are the paths that open Settings during a launch without a click:

  • applicationShouldHandleReopen (Sources/StableBar/StableBarApp.swift:638) opens Settings for every reopen event while no bar share window is open. The guide documents this as "reopen the running app" (docs/settings.md). A second launch request at login reaches the running bar as a reopen and opens Settings. That second request could come from StableBar being registered twice (SMAppService.mainApp plus an older Login Items entry) or from another tool opening it. This is the likeliest path. To confirm, log reopen events at login.
  • After a move to Applications, StableBarApp.swift:383 opens Settings → General from a saved record. The record is consumed when read and expires after 15 minutes (ApplicationMoveResume.swift:69), so it shouldn't fire at a later login.
  • application(_:open:) (StableBarApp.swift:633) opens Settings for stablebar:// links, and StableBar --customize asks a running bar to open it.

A fix needs to tell a reopen sent while StableBar starts at login apart from someone opening the app again.

Related

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

Activity

  1. added
    bug
    P2
    on Nov 18, 2026
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

    P2bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions