Skip to main content

provision_services

Function provision_services 

Source
pub fn provision_services(
    config: &HyprConfig,
    services: &[String],
    valid_for_seconds: i64,
    roster_export: Option<&Path>,
) -> Result<()>
Expand description

Provision or renew a complete local service roster. The database writer lock excludes a running registry; callers must order this before services.

roster_export is opt-in: when absent, behavior is unchanged. When given, a JSON manifest of only the verified readback public fields is written atomically (temporary file + rename); any member failure or unsafe output path fails the whole command without leaving partial or new output.