Skip to main content

init_single_instance

Function init_single_instance 

Source
pub fn init_single_instance(app_id: &str, version: &str) -> Arbitration
Expand description

Single-instance arbitration wired to this hub, with no Shell plugin. The primary process captures its own launch URLs; a second launch forwards its argv to the primary and the caller must exit on Arbitration::Secondary. Keep the Primary guard alive for the process lifetime.