Skip to content

fix(native): treat apps run outside Applications as items macOS will not keep - #533

Merged
tieubao merged 2 commits into
developfrom
fix/pinned-visible-collapse
Nov 17, 2026
Merged

tieubao merged 2 commits into
developfrom
fix/pinned-visible-collapse

Conversation

@tieubao

@tieubao tieubao commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

What

On macOS 27, an app whose menu bar process runs from outside an Applications folder is hidden on collapse even when it sits right of the arrow. iStat Menus 7 is the reported case (#521): its LaunchAgent runs iStat Menus Menubar.app from ~/Library/Application Support/iStat Menus 7/.

Hidden Bar already puts the bundle id on the allow list. macOS does not honour it for a copy run from there, the same way it hides Hidden Bar's own arrow when Hidden Bar runs outside /Applications.

This change treats such an app like the system extras macOS will not keep:

  • Preferences > Advanced lists it under the existing "macOS 27 hides these items" caption ("Seen on this Mac: iStat Menus Menubar").
  • With "Pause hiding while macOS shows Now Playing, Focus and similar items" on, a collapse keeps the bar whole while the app sits right of the arrow.
  • With the switch off (the default), hiding works as before.

macOS's own processes (/System, /usr, /Library/Apple) are exempt. sharingd (/usr/libexec) lists an item no one sees, and without the exemption it would block hiding for good.

Evidence (private restriction probe, same call the engine makes)

macOS iStat copy running bundle allowed result
27.0.1 (26A434) ~/Library/Application Support/iStat Menus 7/ yes hidden
27.0.1 /Applications/iStat Menus.app/... yes kept
27.2.1 (26B131) ~/Library/Application Support/iStat Menus 7/ yes hidden
27.2.1 /Applications/iStat Menus.app/... yes kept

Both measured versions hide it, so there is no extra version gate beyond the native engine's macOS 27 gate. 27.3 is untested.

Tests

  • New tests: the resolver records an app run from outside Applications (visible vs hidden side), the path check (/System, /usr, /Applications exempt), pause on keeps the bar whole, and with pause off hiding goes on and the app is listed.
  • scripts/test.sh in the mac-ui VM: Hidden Bar 679 passed / 0 failed, Hidden Bar App Store 445 / 0.
  • Negative control: dropping the resolver's record turns 3 tests red; restored, green.

Verified in a VM (hb-macos2701, macOS 27.0.1, iStat Menus 7.30 from Application Support)

  • Pause off: collapse hides iStat as before. Advanced lists "iStat Menus Menubar".
  • Pause on: collapse keeps the bar whole and iStat stays visible.

Refs #521

…not keep

macOS 27 hides an app whose menu bar process runs from outside an
Applications folder although its bundle id is on the allow list. iStat
Menus 7 runs its menu bar from ~/Library/Application Support through a
LaunchAgent, so it vanished on collapse even in the visible section
(#521). Measured on 27.0.1 and 27.2.1: the App Support copy is hidden
when allowed, the /Applications copy is kept.

Such an app in the visible section is now listed under "macOS 27 also
hides" in Preferences, and with "Pause hiding while macOS shows..." on,
a collapse keeps the bar whole while it sits right of the arrow, the
same path the unkeepable system extras take. /System stays exempt.
sharingd runs from /usr/libexec and lists a menu bar item no one sees;
seen on 27.0.1 in the 'also hides' list, and with pause on it would have
kept the bar whole for good.
@tieubao
tieubao force-pushed the fix/pinned-visible-collapse branch from 57dd576 to 1f2f127 Compare November 17, 2026 06:56
@tieubao
tieubao marked this pull request as ready for review November 17, 2026 06:57
@tieubao
tieubao merged commit 8df2b9f into develop Nov 17, 2026
3 checks passed
@tieubao
tieubao deleted the fix/pinned-visible-collapse branch November 17, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant