pub async fn ensure_proxy(
proxy_bin: &Path,
use_subcommand: bool,
) -> Result<String, String>Expand description
Ensure a blit-proxy daemon is running, spawning one if necessary.
proxy_bin is the path to the binary that accepts a proxy-daemon
subcommand (typically blit_exe()). When the binary is the
standalone blit-proxy it should be invoked without arguments;
when it is the blit CLI it needs the proxy-daemon subcommand.
Returns the socket path on success.