Skip to main content

notify_if_running

Function notify_if_running 

Source
pub fn notify_if_running(app_id: &str) -> bool
Expand description

Checks whether another instance of the application is already running.

If a running instance is found, sends a wake-up signal to it and returns true. The caller should exit immediately in this case.

Returns false if no existing instance was detected, meaning the caller may proceed to launch as the primary instance.

ยงArguments

  • app_id - A unique identifier for the application, used to name the IPC socket.