lan-mouse/src
Jon Kinney cbdb86ce05 fix: write a default config.toml on every Config::new()
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>
2026-04-29 22:59:43 +02:00
..
capture.rs automatically update config when changed (#402) 2026-04-09 12:04:21 +02:00
capture_test.rs feat: simplify and change configuration (#279) 2025-03-15 18:45:19 +01:00
client.rs automatically update config when changed (#402) 2026-04-09 12:04:21 +02:00
config.rs fix: write a default config.toml on every Config::new() 2026-04-29 22:59:43 +02:00
connect.rs improve reliability of connections (#349) 2025-11-03 18:04:18 +01:00
crypto.rs Encryption and One-Way-Control (#200) 2024-11-09 13:54:43 +01:00
dns.rs Add rustfmt.toml for explicit styling (#348) 2025-11-02 11:52:01 +01:00
emulation.rs Add rustfmt.toml for explicit styling (#348) 2025-11-02 11:52:01 +01:00
emulation_test.rs feat: simplify and change configuration (#279) 2025-03-15 18:45:19 +01:00
lib.rs Encryption and One-Way-Control (#200) 2024-11-09 13:54:43 +01:00
listen.rs Add rustfmt.toml for explicit styling (#348) 2025-11-02 11:52:01 +01:00
main.rs feat: simplify and change configuration (#279) 2025-03-15 18:45:19 +01:00
service.rs automatically update config when changed (#402) 2026-04-09 12:04:21 +02:00