# server.NewSessionOptions.start_directory

- **Module:** server.NewSessionOptions
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/server.rs#L1806
- **Page:** https://libtmux.org/reference/rs/server-newsessionoptions-start_directory/

```
server.NewSessionOptions.start_directory(mut, directory: impl Into<PathBuf>) -> Self
```

Set the working directory for the session's first window.

tmux expands this as a format, so [`crate::escape_format`] belongs
around text a program did not write.
