defaultStateDir
function defaultStateDir(): string;Defined in: src/launcher/state.ts:47
Resolve the per-user state directory used for lockfiles + sockets.
- Linux:
$XDG_RUNTIME_DIR/vgi-rpc/when set (systemd-managed, auto-cleaned on logout); otherwise$TMPDIR/vgi-rpc-$UID/. - macOS / BSD:
$TMPDIR/vgi-rpc-$UID/. - Windows:
$TMP/vgi-rpc/.
The directory is created mode 0700 if missing. On POSIX, we refuse to
operate on a directory not owned by the current user — defends against
a hijacked /tmp/vgi-rpc-$UID left by an attacker.
Returns
Section titled “Returns”string