Skip to content

Setup leaves switching desktops off on macOS Spaces #447

Closed

Description

@M4n0x

Problem

On macOS Spaces, clicking a desktop in a Workspaces widget posts its Switch to Desktop N shortcut. macOS ships those shortcuts off, so on most Macs the first click does nothing. Setup only mentions them in a grey note in Finishing touches, and Settings → General → Access doesn't list them. The person learns about it from a warning triangle on the widget and a line in the bar's menus: "Turn on “Switch to Desktop 1” in System Settings → Keyboard → Keyboard Shortcuts → Mission Control." That line stays until the next Space change or app activation, even after the shortcut is on. System Settings has one checkbox per desktop, so turning them on by hand takes a checkbox for every desktop, and again for each desktop added later.

Seen with StableBar 0.11.1-beta.20261107124053.624 on macOS 27.2 with no window manager running: defaults read com.apple.symbolichotkeys AppleSymbolicHotKeys shows keys 118 and 119 (desktops 1 and 2) with enabled = 0.

Proposal

  • When Workspaces uses Spaces, setup's permissions step shows a Desktop shortcuts row beside Accessibility, with Turn On and Open Keyboard Shortcuts….
  • Turn On sets macOS's default keys (⌃1–⌃9) for desktops 1–9 in com.apple.symbolichotkeys, keeps any key the person already chose, and applies the change with /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u, so no logout is needed. That tool is undocumented: check it live on macOS 27 first. If it doesn't apply reliably, setup only opens the pane and re-checks while it shows, as it does for Accessibility.
  • The row doesn't block finishing: the bar works without the shortcuts; only switching from the bar doesn't.
  • Settings → General → Access lists the shortcuts while a Workspaces widget uses Spaces, with the same buttons.
  • The click error clears once the shortcut is on, not at the next refresh.

Code on main (9494cc7): switchToDesktop(_:) in Sources/StableBar/Spaces.swift reads key 117 + N and throws when it's off; select(_:) in Workspaces.swift stores the error, and only a successful refresh() clears it; SetupPermission in SetupWindow.swift covers Accessibility, Automation and Calendars; permissions(source:) in DataSourceRegistry.swift lists only Accessibility for Spaces.

Possible today

Turn on each Switch to Desktop N in System Settings → Keyboard → Keyboard Shortcuts → Mission Control, as macOS Spaces workspaces describes.

Related

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

Activity

  1. added
    enhancement
    P2
    on Nov 7, 2026
  2. self-assigned this
    on Nov 10, 2026
  3. added a commit that references this issue on Nov 11, 2026
    86e01ed
  4. stablebar-releases commented on Nov 11, 2026

    @stablebar-releases

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

Labels

P2enhancementreleased

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions