Commit graph

2 commits

Author SHA1 Message Date
vrubelroman
ec3eeef436 fix: save the theme to an explicit config that does not exist yet (QA-15)
With -config or $VCOM_CONFIG naming a missing file, main now passes that
path to the UI and paths.DefaultConfigFile returns $VCOM_CONFIG, so
SetKey creates the file every later start reads instead of writing
~/.config/vcom/vcom.toml. A broken-config notice now starts with
"Config error:" so the status line shows it as an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 09:10:51 +03:00
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