# Function `kurogane::is_browser_process`

```rust
pub fn is_browser_process() -> bool
```

Returns 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`](https://kurogane-rs.org/docs/api/app/app.md#method.run) runs in every process. Use this
to guard one-time side effects:

```rust
if kurogane::is_browser_process() {
    // create files, print, open sockets; once, not once per helper
}
kurogane::App::new("content").run_or_exit();
```

[crate::App::run]: https://kurogane-rs.org/docs/api/app/app.md#method.run

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/runtime.rs#L241
