# LibTmux.Internal.StartDirectory

- **Module:** LibTmux.Internal
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Internal/StartDirectory.cs#L14
- **Page:** https://libtmux.org/reference/dotnet/libtmux-internal-startdirectory/

Prepares a tmux <c>-c</c> start-directory value.

tmux hands the value straight to <c>chdir</c>, so a leading <c>~</c> is not
a home directory to it: the call fails and tmux silently falls back to its
own default, leaving the pane somewhere the caller never asked for. Only a
shell expands the tilde, and there is no shell in this path.

tmux also expands the value as a format, in the spawn path every command
that takes <c>-c</c> shares, so a <c>#</c> in it does not reach chdir.

## Members

- `Resolve` (method) — Resolves one start directory, or null when there is nothing to send.
