# server.Server.set_global_option

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/server/settings.rs#L150
- **Page:** https://libtmux.org/en/rs/latest/reference/server-server-set_global_option/

```
server.Server.set_global_option(self, name: &str, value: impl Into<OsString>) -> Result<(), Error>
```

Set one global session option to text, unchecked.

Sessions inherit from this table, so it is where a default belongs.
[`Self::set_typed_global_option`] checks the value first.

# Errors

Returns an error when tmux rejects the name or value.
