Protected ReadonlyCliProtected ReadonlylaunchProtected ReadonlyloggerProtected ReadonlypreferenceProtectedapplyProtectedapplyProtectedmergeOverlays overrides onto base, later entries winning per encoded key
([override].name or plain name) while preserving order (base first).
Called when the application is started. The application shell is not attached yet when this method runs. Should return a promise if it runs asynchronously.
ProtectedresolveResolves the CLI-provided preferences to apply to this window.
The shared backend reflects the original cold-start launch (it cannot distinguish between windows), so it supplies the process-wide CLI preferences. A forwarded (second-instance) window additionally carries its own options, provided by the trusted main process, and layers them on top, overriding by key. Merging (rather than replacing) means a plain second-instance window keeps the process-wide values instead of dropping them, while an attach window still gets its own overrides.
Applies a batch of CLI-provided preferences sequentially. A rejection from an individual write (bad key, invalid scope, etc.) is logged and does not abort the remaining writes, and it is not left as an unhandled promise rejection.