Skip to content

platform/policy/platform-providers

createPolicyProviders(brand, platform, io?): PolicyProvider[]

Defined in: app/src/platform/policy/platform-providers.ts:15

Creates the policy providers of the current platform. Paths follow the enterprise design: SOFTWARE\Policies\<Product> on Windows, managed preferences of the bundle id on macOS and /etc/<slug>/policies on Linux. The code that reads the sources loads with the first read, which runs while Electron starts, so it stays out of the start path.

Brand

Product names and identifiers.

Platform

process.platform.

PolicyIo

System access; defaults to Node.js.

PolicyProvider[]