Feature request: per-process macOS Dock badge label
Feature request: per-process macOS Dock badge label
We launch one independent CloakBrowser process per persistent profile. On macOS those processes already appear as independent Dock tiles, but our launcher cannot assign a label to another process's Dock tile — and the AppKit API for it (NSDockTile.badgeLabel) is only reachable from inside the process that owns the tile.
We would like a small, opt-in macOS browser capability:
--dock-badge-label=<short-ascii-string>Suggested semantics:
- switch absent → leave the Dock badge untouched
--dock-badge-label=101→ show101--dock-badge-label=QA→ showQA--dock-badge-label=→ clear the label
The browser process can implement this with its own NSDockTile.badgeLabel, after NSApplication is initialized and from an appropriate AppKit/main-thread startup point.
We verified the relevant AppKit behavior with a minimal macOS bundle that matches our production launch shape: same .app, same Bundle ID, same executable, multiple directly spawned processes (not open -a). Three processes showed independent Dock tiles with 8, 37 and 101; quitting one did not affect the others.
The requested capability is intentionally generic. Our own profile-numbering rules (for example a 9999+ cap) stay outside CloakBrowser — the browser only needs to accept a short ASCII label.
Acceptance:
- same app launched as three independent processes with labels
8,37,101shows all three independently; - an empty label clears that process's badge;
- quitting one process does not change the others;
- relaunching with the same label restores it;
- without the switch, current behavior is unchanged;
- oversized input does not crash startup.
Non-ASCII input is outside the contract; it must not crash the browser. Exact invalid-input handling is left to the maintainer.
We are happy to provide the probe source, logs and additional screenshots.
Source: CloakHQ/CloakBrowser