# A macOS Dock icon per browser profile, and its cost

> macOS gives one Dock tile per app identity, and greets each new one with a banner. We pool identities by open window: five, not one per profile.

Source: https://mosaicbrowser.com/blog/dock-tile-per-slot

## One Dock tile per window slot, and a banner we can't stop

macOS gives one Dock tile per app identity, and greets each new one with a banner. We pool identities by open window: five, not one per profile.

![367: 367 identities down to one per open window, beside a screenshot: the Mosaic sidebar with profiles running, each with its own window](https://mosaicbrowser.com/covers/dock-tile-per-slot.webp)

macOS shows one Dock tile per application identity, its bundle identifier, so a Dock icon per browser profile needs a separate app bundle for each one. That is what Mosaic does when you ask it to. Every new identifier also earns a notification banner from macOS, once and for good, and nothing inside the bundle stops it. So we make identifiers per open window rather than per profile. On our machine that is five identities instead of 367.

## How a browser gets a tile of its own

With Settings › General › Launching › Give each open browser its own Dock icon turned on, every visible launch runs under a copy of the engine dressed for that window. The copy is an APFS clone of Tesseract Chrome, our Chromium build, with a swapped icon and an ad-hoc signature of its own. Its tile carries the project's colour, glyph and name. The profile's name shows in the tooltip, and a blue API band crosses the corner when a script started the browser rather than a person.

The switch is off by default. Off, every browser runs under one shared Mosaic identity, and the Dock shows a single tile for all of them. You then tell windows apart by the profile's name drawn beside the address bar, which the engine itself does (the story is in [five identical windows](https://mosaicbrowser.com/blog/five-identical-windows)).

![The Mosaic sidebar listing running profiles](https://mosaicbrowser.com/shots/running.png)
*Running profiles, listed in the sidebar*

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Local first](https://mosaicbrowser.com/features/local-first)

## The banner that came with every launch

The first version made one identifier per profile. That looked tidy until someone sent us a screenshot of eleven macOS banners stacked down the corner of the screen, one per profile launched that afternoon. Each reads "«Name» Notifications — may include alerts, sounds and icon badges". macOS shows it the first time it sees an identifier, once, and remembers that identifier for good.

We tried to prevent it. Each variant got a fresh identifier, because macOS greets an identifier only once and reusing one makes every variant look clean. We counted rows in the system's own notification database, `~/Library/Group Containers/group.com.apple.usernoted/db2/db`, before and after each launch. These all registered:

- the bundle as we ship it
- with `NSUserNotificationAlertStyle` deleted outright
- with both "(Alerts)" helper apps removed
- with the key deleted and the helpers removed
- all of that, plus `--disable-notifications` on the command line

Those five came on top of six earlier trials, eleven in all. Nothing in the bundle and nothing on the command line prevents it. One identifier is one Dock tile and one banner. Zero banners and more than one tile cannot both be had. That is the platform's rule, not a bug of ours.

## Pooling by window slot

Since the identifier is the only lever, we changed how many there are. A launch now takes the lowest free slot among the browsers currently running and runs as `com.mosaic.browser.s1`, `s2` and so on. The number of identifiers becomes the most browsers you have ever had open at once. On our machine that is five. Under the old scheme it was 367 and climbing, one for every profile that had ever run.

Nothing is lost on screen. The bundle in a slot is re-dressed for whoever is in it, so each tile still shows its own project and profile. We had assumed re-dressing was slow; a comment in the launcher said "the better part of a minute". Measured, it is about 0.7 seconds: 0.09 for the APFS clone, 0.28 for ten `sips` rasters plus `iconutil`, and 0.04 for an ad-hoc `codesign`. It is paid only when a slot changes hands. That old belief was what had kept identifiers keyed by profile.

We counted rows in the notification database again after the change:

| Launch | Rows before | Rows after |
| --- | --- | --- |
| Setting off, one visible launch | 646 | 646 |
| Setting on, two browsers at once | 646 | 648 |
| Setting on, a third launch after both had stopped | 648 | 648 |

The third row is the pool working. Under the old scheme that launch would have been a third identifier and a third banner.

## Turning it off for people who already had it on

The setting first shipped switched on. A stored setting beats a default, so changing the default would have reached new installs only. The person who reported the banners would not have got the fix. So the app state's version number got its first use: an install below version 2 has the setting turned off once and the version bumped. If you turn it back on in Settings, that choice survives every later launch.

## The tile that background work still costs

Leak tests, audits and warm-up runs park their window off-screen at -32000. A window off-screen is still a running app, and a running app has a Dock tile. We wrote the obvious fix, a bundle marked `LSUIElement`, which is how macOS hides an app from the Dock. It kills the browser at once with "icudtl.dat not found in bundle", because Chromium finds its ICU data through the framework bundle and launching as a background-only app breaks that lookup. There is no command-line equivalent.

So background work shows one Mosaic tile while it runs, and the tile goes when the work does. What it never shows is a tile called "Tesseract" with the stock Chromium icon. That was the raw engine binary launched without a bundle, and Mosaic no longer launches the binary directly anywhere.

Owning the engine is what lets us choose an identity per window at all; [why we built our own Chromium](https://mosaicbrowser.com/blog/why-we-built-our-own-chromium) covers the rest of that choice. The bundles, like everything else Mosaic writes, stay on your own disk, as [local-first](https://mosaicbrowser.com/features/local-first) describes.

## Questions

### Why does a Chrome profile not get its own Dock icon?

The Dock shows one tile per application identity, and every Chrome profile runs inside the same application. A separate tile needs a separate app bundle with its own identifier.

### How do I give each Mosaic browser its own Dock icon?

Turn on Give each open browser its own Dock icon in Settings › General, under Launching. Each open window then gets a tile in its project's colour, glyph and name.

### Can the macOS notification banner be turned off?

Not from inside the app. We tried eleven variants and every one was registered. Pooling identities by open window keeps the number of banners to the most browsers you have had open at once.

### Do background runs show a Dock tile?

Yes, one Mosaic tile while the work runs. A window parked off-screen is still a running application, and the setting that would hide it stops the browser from starting.

## Related

[Five open profiles were five identical windows](https://mosaicbrowser.com/blog/five-identical-windows): Chrome names a window by profile only once a second profile shares its data folder. Ours never do, so we draw the name beside the address bar.

[Why we built our own Chromium instead of injecting JavaScript](https://mosaicbrowser.com/blog/why-we-built-our-own-chromium): Mosaic changes fingerprint values inside its own engine. Three measured differences between Chrome and plain Chromium explain why that matters.

[Local first: your profiles stay on your computer](https://mosaicbrowser.com/features/local-first): Mosaic has no cloud copy of your profiles. Profiles, cookies and proxies stay on your computer, encrypted on disk, with app lock, daily backups and a trash.

[What is an anti-detect browser?](https://mosaicbrowser.com/guides/what-is-an-anti-detect-browser): An anti-detect browser gives each profile its own fingerprint, proxy and cookies, so sites see separate visitors. What it changes, how, and its limits.









[Mosaic gives every profile's cookies their own key](https://mosaicbrowser.com/blog/cookie-key-per-profile): Chrome on a Mac turns a Keychain password into an AES key with PBKDF2. Our engine lets Mosaic pass each profile its own password and keeps the v10 format.

[A web page can knock on 127.0.0.1, and how we close it](https://mosaicbrowser.com/blog/web-pages-scanning-localhost): Page script can fetch 127.0.0.1 and time the reply. Our old block added switches for popups and gamepads; a PAC file aimed at port 1 is what works.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
