mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-08 23:28:04 +03:00
The previous fix created the config directory but left config.toml absent on a first launch, which surfaced as two "No such file or directory (os error 2)" warnings (one from the main process, one from the spawned daemon child) and left the app starting up with config_toml=None until the GUI persisted something. Write ConfigToml::default() to the path if it doesn't exist, so every entry point — GUI main, spawned daemon, CLI, test commands — gets a concrete file to read, and first-launch logs stay clean. Also reorders Config::new() so both the directory creation and the file bootstrap run before the first read attempt, eliminating the warning at the source rather than hiding it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>