# types.SpawnOptions.startDirectory

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/ad09eaef7ffff40f510989ee0695852c44a31576/packages/libtmux/src/types.ts#L557
- **Page:** https://libtmux.org/en/ts/latest/reference/types-spawnoptions-startdirectory/

Directory the program starts in, taken as a literal path. Defaults to this process's current directory, or the [`from`](/en/ts/latest/reference/types-spawnoptions-from/) pane's. One that cannot be entered means the program never runs: see [`ProgramStartError`](/en/ts/latest/reference/errors-programstarterror/).
