# TmuxServers.defaultDirectories(environment:)

- **Module:** TmuxServers
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Discovery.swift#L45
- **Page:** https://libtmux.org/reference/swift/tmuxservers-defaultdirectories(environment-)/

```
TmuxServers.defaultDirectories(environment:)(environment: [String : String]) -> [String]
```

Where tmux puts sockets when nobody says otherwise.

tmux builds this from the real user id, not the name, and honours
`TMUX_TMPDIR` above it.
