Function
is_browser_process
pub fn is_browser_process() -> boolReturns whether this process is Chromium’s browser process rather than
one of its helper processes (renderer, GPU, utility) which run this same
binary again with a --type= argument.
Code before App::run runs in every process. Use this
to guard one-time side effects:
if kurogane::is_browser_process() {
// create files, print, open sockets; once, not once per helper
}
kurogane::App::new("content").run_or_exit();