Commit graph

1 commit

Author SHA1 Message Date
vrubelroman
1c57f92c42 feat(paths,atomicfile): XDG/sudo path rules and atomic local file writes (2C.1)
paths: config lookup -config → $VCOM_CONFIG → XDG → ~/.config (never the
working directory; StrayCwdConfig only reports one), state/cache/data dirs
of the effective user under sudo (inherited XDG_* ignored for writes),
run-<pid> dir with a sweep of dead processes' dirs (U-P1-15).
atomicfile: temp + fsync + rename + dir fsync; keeps the old file on any
error, writes through symlinks and keeps mode/owner of an existing file.
The trash now takes its home from paths.DataHome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:31:14 +03:00